Welcome Guest, Not a member yet? Register   Sign In
Problem with CodeIgniter PHP function not changing variable
#2

[eluser]WanWizard[/eluser]
The only way for $result to be identical after calling str_replace_first(), it if the $from is not found. When I test that function here, it replaces without problems.

What is the result of that echo statement, when you change it to
Code:
echo "F=".$from." W=".$what." X=".($found?"TRUE":"FALSE")." C=$cnt <br/>";

Is $found TRUE?


Messages In This Thread
Problem with CodeIgniter PHP function not changing variable - by El Forum - 08-16-2010, 05:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB