Php and preg_replace help!? (solved)
Posted: Sat Feb 04, 2006 7:16 pm
Could you please tell me what's wrong with this? :(
I've spend 3 hours on it... this should NOT happen! o_O
it should echo ... instead it echos
am I missing something? o_O
I can't take this any more I'm starting to lose it! :P
please help!?
I've spend 3 hours on it... this should NOT happen! o_O
Code: Select all
$test = array('test');
$test = preg_replace("/(.*)/", "/\\1/i", $test);
echo $test[0];Code: Select all
/test/iCode: Select all
/test/i//iI can't take this any more I'm starting to lose it! :P
please help!?