You are here: Re: [PHP] what does this mean? « PHP « IT news, forums, messages
Re: [PHP] what does this mean?

Posted by Leif Gregory on 02/25/05 21:28

Hello Diana,

Friday, February 25, 2005, 7:07:29 AM, you wrote:
D> on which page of php.net can I find out what this code does?
D> $a = $b? $a :"dian";


It's called a ternary operator, basically an if-else statement.

There really isn't a page (that I've found) that explains in on
php.net, but check out the user contributed notes on this page.

http://us4.php.net/manual/en/control-structures.alternative-syntax.php



--
Leif (TB lists moderator and fellow end user).

Using The Bat! 3.0.2.3 Rush under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB

 

Navigation:

[Reply to this 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

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