Re: what's the difference in the following code?

From: Date: Fri, 24 Oct 2008 10:02:30 +0000
Subject: Re: what's the difference in the following code?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-282399@lists.php.net to get a copy of this message
>The difference between the examples are still nothing, it do the same. >But I never use the short version of if, because when I look after some month in some projects I >have a better overview when there is a long if , its much easier to extend. As explained a couple of times already - there is not supposed to be a difference. It's about security and making code maintainance easier. [quote to Chris's former post] (..) imagine you're manually reviewing a colleague's code, and you're looking through a few thousand lines to try to help identify security problems. (..) [end quote] It's the old "What's good code and what's bad code?" discussion. In this case ternary operations are bad code. >sorry for my bad english Die Code tun nicht Unterschiede in Execution. Es ist Sicherheits Frage. sorry for my bad German //A yeti

« previous php.general (#282399) next »