Home >> PHP >> ereg_ireplace() function in PHP

ereg_ireplace() function in PHP

The ereg_ireplace() function search and replace regular expression.

It is case-insenstive.

Example

$var="Year 2017";

$copyvar=ereg_replace("[0-9]","2000",$var);

echo $copyvar;

Output

Year 2000

Post Your Comment

Next Questions
preg_match() function
preg_replace() function
File handling
fopen() function
fclose() function
fread() function
create the file
Check the file is available or not
Destroy the file
Write into the file
Create into folder
Remove a folder
touch() function
file_exits() function
unlink() function
fwrite() function
mkdir() function
rmdir() function
is_dir() function
file_get_contents() function
fgets() function
basename() function
chgrp() function
chmod() function
chown() function

Copyright ©2022 coderraj.com. All Rights Reserved.