syntax for multiple boolean

From: Date: Sat, 27 Aug 2005 17:42:54 +0000
Subject: syntax for multiple boolean
Groups: php.general 
Request: Send a blank email to php-general+get-221470@lists.php.net to get a copy of this message
I want to check if multiple fields are empty and want to find the best shorthand way to do it. What are the rules with brackets in PHP. if (empty ($fname){ //do something } if (empty ($sname){ //the same thing } if (empty ($address){ //do the same ting again } R.

« previous php.general (#221470) next »