René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
preg_replace [PHP] | ||
A php page containing this code....
<html><head><title>preg_replace example with PHP</title></head> <body> <?php $pattern = '/foo/i'; $replace = 'bar'; $text = 'one foo and another FOO to be replaced'; print "result: " . preg_replace($pattern, $replace, $text); ?> <p><a href='http://www.adp-gmbh.ch/php/preg_replace.html'>Go here</a> </body><html>
... can be found here.
|