Reply to Re: [PHP] what does this mean?

Your name:

Reply:


Posted by Guillermo Rauch on 09/26/07 11:09

Including more than one you can make a complex control structure, not
just if else

$a = ($a == 0) ? ($b < $a ) ? $b : $a :$c;


On Fri, 25 Feb 2005 13:26:51 -0600, Jay Blanchard
<jay.blanchard@niicommunications.com> wrote:
> [snip]
> on which page of php.net can I find out what this code does?
> $a = $b? $a :"dian";
> [/snip]
>
> It is a ternary IF statement...verbose
>
> if ($a = $b){
> $a;
> } else {
> "dian";
> }
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация