[UPHPU] short syntax without the else?

Wade Preston Shearer lists at wadeshearer.com
Sat Jan 19 20:57:48 MST 2008

Can you do this syntax…

	$var = condition ? this : that;

…without the that? Like this…

	$var = condition ? this;

…? If yes, would it be the same as…

	if(condition) {
		$var = this;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20080119/cf67ab90/smime.bin

More information about the UPHPU mailing list