leegold2
Technical User
- Oct 10, 2004
- 116
What does "$0" do? The results change if I use "$1" why?
$a = "Foo moo boo tool foo";
$b = preg_replace("/[A-Za-z]oo\b/", "Got word: $0 ", $a);
Thanks,
Lee G.
$a = "Foo moo boo tool foo";
$b = preg_replace("/[A-Za-z]oo\b/", "Got word: $0 ", $a);
Thanks,
Lee G.