ereg_replace : ereg_replace « String « PHP






ereg_replace

 
<?
$inmystring = "Hello World!"; 
$mynewstring = ereg_replace("Hello", "Goodbye", $inmystring); 
print $mynewstring;
?>
  
  








Related examples in the same category

1.back-reference parenthesized substrings
2.ereg_replace() function searches for string and replaces pattern if found.
3.ereg_replace-2
4.ereg_replace.php
5.Using ereg_replace