Re: alternative control structure syntax

From: Date: Thu, 16 Jan 2003 01:44:19 +0000
Subject: Re: alternative control structure syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131795@lists.php.net to get a copy of this message
On Thu, 16 Jan 2003 12:34:26 +1100, you wrote: >Hi, > >Can someone point me to the page in the manual where this style of control >structure syntax is documented? > >$var = ($something) ? "foo" : "bah"; This is the ternary operator. It's kinda buried in the documentation: http://www.php.net/manual/en/language.operators.comparison.php

« previous php.general (#131795) next »