basic-regex-23-Ereg-ReplaceDemo.php / php
<html> <head> <title>ereg_replace() Demo</title> </head> <body> <?php myReplacement = "Hi"; <p>The original string was 'myString'.</p>"; echo "<p>The pattern is '</p>"; echo "<p>The replacement text is 'myReplacement'.</p>"; myPattern, myString); <p>After replacement the string becomes: ' "; displayString = replacedString . "'.</p>"; echo </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.