Just one question:
Why do you need to initialize the $count var?
<? $text = '124 35 dgg gg 466'; //$count=0; echo preg_replace('/(\d)/', '"\1', $text, -1, $count); echo "\n$count"; ?>
prints: Notice: Undefined variable: count in /transfer/test.php on line 4 "1"2"4 "3"5 dgg gg "4"6"6 Notice: Undefined variable: count in /transfer/test.php on line 5
If you remove the comments in $count=0, it works...
Nuno
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php