Using preg_replace() to Replace Patterns : preg_replace « String « PHP
- PHP
- String
- preg_replace
Using preg_replace() to Replace Patterns
<?
$test = "this is a test.";
print preg_replace("/a test/", "another test", $test);
?>
Related examples in the same category