RE: [PHP] A follow up on my question about good coding practice [isset]

From: Date: Fri, 10 Sep 2004 18:22:43 +0000
Subject: RE: [PHP] A follow up on my question about good coding practice [isset]
Groups: php.general 
Request: Send a blank email to php-general+get-196331@lists.php.net to get a copy of this message
For reference: http://www.blueshoes.org/en/developer/php_cheat_sheet/ > -----Original Message----- > From: Al [mailto:news@ridersite.org] > Sent: Sunday, June 06, 2004 7:47 PM > To: php-general@lists.php.net > Subject: [PHP] A follow up on my question about good coding > practice [isset] > > > I could use one additional clarification regarding good practice. > > As I understand the php manual the following is acceptable. > > $foo= TRUE; > > if($foo) do.............. ; > > where $foo is a binary; but not a variable. > > Use isset($var) for variables and be careful with $var= ' '; etc. > because $var is assigned, i.e., "set". > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#196331) next »