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

[eluser]WanWizard[/eluser]
I think you have an entirely different issue.

If I run this
Code:
$d=date('Ymd');
$r = array('promoend' => '12-12-2001');
echo $c=(strtr($r['promoend'],array(" "=>"","-"=>"",":"=>""))>$d)?'#caffca':'#e9e9e9';
it runs without problems (echo's #e9e9e9).




Theme © iAndrew 2016 - Forum software by © MyBB