/ Published in: PHP
URL: http://www.lizjamieson.co.uk/2007/08/20/short-if-statement-in-php/
Expand |
Embed | Plain Text
$x = ($myvalue == 10) ? "the value is 10": "the value is not 10";
You need to login to post a comment.
Michael01 on 12/03/09
1 person have marked this snippet as a favorite
URL: http://www.lizjamieson.co.uk/2007/08/20/short-if-statement-in-php/
$x = ($myvalue == 10) ? "the value is 10": "the value is not 10";
You need to login to post a comment.