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).


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.