
February 20th, 2004, 04:22 AM
|
|
The Frazzman
|
|
Join Date: Apr 2007
Location: Melbourne, Victoria, Australia
Posts: 126
Time spent in forums: 6 h 54 m 58 sec
Reputation Power: 3
|
|
|
preg_replace
ok heres the sample off the php site.
php Code:
Original
- php Code |
|
|
|
$string = "April 15, 2003"; $pattern = "/(w+) (d+), (d+)/i"; $replacement = "${1}1,$3";
can some one please explain to me how the "${1}1,$3"; and the "/(w+) (d+), (d+)/i"; work and perhaps suggest a link where i can learn about these, because to me that just looks like a mess. I have no idea how that could do anything....
|