Welcome Guest, Not a member yet? Register   Sign In
strtr VS CI bug? result parse error
#2

[eluser]mddd[/eluser]
I think the problem is that there is an unclear situation here. The expression can mean two things:

echo ($c=(condition)) ? opt1 : opt2
or
echo $c = ( (condition) ? opt1: opt2)

See the difference? php needs to know whether the choice ( the ? operator) applies only to the strtr>$d operation or to the entire expression, which is $c = strtr > $d.
That is why it DOES work in your second example. Here there is no ambiguity about what the ? operation means.


Messages In This Thread
strtr VS CI bug? result parse error - by El Forum - 06-29-2010, 10:58 PM
strtr VS CI bug? result parse error - by El Forum - 06-30-2010, 12:05 AM
strtr VS CI bug? result parse error - by El Forum - 06-30-2010, 12:47 AM
strtr VS CI bug? result parse error - by El Forum - 06-30-2010, 01:10 AM
strtr VS CI bug? result parse error - by El Forum - 06-30-2010, 01:30 AM
strtr VS CI bug? result parse error - by El Forum - 06-30-2010, 01:47 AM
strtr VS CI bug? result parse error - by El Forum - 06-30-2010, 01:58 AM
strtr VS CI bug? result parse error - by El Forum - 06-30-2010, 02:07 AM
strtr VS CI bug? result parse error - by El Forum - 06-30-2010, 02:11 AM
strtr VS CI bug? result parse error - by El Forum - 06-30-2010, 02:17 AM
strtr VS CI bug? result parse error - by El Forum - 06-30-2010, 08:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB