Re: what do '?' and ':' do?

From: Date: Mon, 17 May 2004 19:49:54 +0000
Subject: Re: what do '?' and ':' do?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186424@lists.php.net to get a copy of this message
They confuse non-C programmers, mostly. See this: http://www.php.net/operators.comparison cheers, Travis Radek Zajkowski wrote:
Here's a code snippet // call gui object method $method = $cmd."Object"; $class_name = $objDefinition->getClassName($obj_type); $module = $objDefinition->getModule($obj_type); $module_dir = ($module == "") ? "" : $module."/"; what does the semicolon and the question mark do? TIA R> -------------------------------------------------
-- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>

« previous php.general (#186424) next »