String replace with Regular Expressions : String Replace « String « PHP
- PHP
- String
- String Replace
String replace with Regular Expressions
<?
$old_string = "I really love programming in ASP!";
$new_string = ereg_replace("ASP", "PHP", $old_string);
echo "$new_string";
?>
Related examples in the same category