RE: [PHP] comparing numbers

From: Date: Sun, 25 Feb 2001 10:27:11 +0000
Subject: RE: [PHP] comparing numbers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41573@lists.php.net to get a copy of this message
$id = ($id<=59) ? $id=81 : false; or the traditional way: if($id<=59) { $id=81; } Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: Clayton Dukes [mailto:cdukes@cdukes.com] Sent: Sunday, February 25, 2001 11:54 AM To: php-general@lists.php.net Subject: [PHP] comparing numbers How can I do something like the following shell script, in PHP? (I know this won't work normally, but you get the idea). if [ $id <= 59 ]; then $id=81 TIA! Clayton Dukes

« previous php.general (#41573) next »