i just wanna ask what do you call other technique of using if then else statement?
like this one :
Code: Select all
<?php ((count($this->getErrorMessages())) ? FALSE : TRUE; ?>thanks for helping in advanced...
Moderator: General Moderators
Code: Select all
<?php ((count($this->getErrorMessages())) ? FALSE : TRUE; ?>Well, technically it's an operator (like + or *), not a statement (like "if" or "while").arborint wrote:It called the "ternary conditional operator" and though it should be in the manual here:
http://www.php.net/manual/en/language.c ... ctures.php