[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
Re: [PHP] comparing numbers
just replace the [] with () if($id = 59) { $id = 81; } --Joe On Sat, Feb 24, 2001 at 09:54:08PM -0500, Clayton Dukes wrote: 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 -- --- Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] comparing numbers
Do you mean something like: ?php if ($id = 59) $id = 81; ? --dave -Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 25, 2001 12:54 PM To: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]