[PHP] what is the difference between function and language construct?

2002-03-21 Thread bob
why this get wrong? ?php if (empty($a=5)) { echo 'ok'; } else { echo 'bad'; } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] what is the difference between function and language construct?

2002-03-21 Thread Matthew Walker
Because $a=5 is not 'empty'. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: bob [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 5:19 PM To: [EMAIL PROTECTED] Subject: [PHP] what is the difference between function and language construct