Re: easy question.

From: Date: Wed, 24 Jan 2001 23:33:43 +0000
Subject: Re: easy question.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36519@lists.php.net to get a copy of this message
if ($fname && $lname && $email) echo "test"; If by easier you mean typing less. ;) Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Wed, 24 Jan 2001, Nathan Cook wrote: > Date: Wed, 24 Jan 2001 16:27:12 -0700 > From: Nathan Cook <ncook@pcsedu.com> > To: Php List <php-general@lists.php.net> > Subject: [PHP] easy question. > > I have always wrote code this like: > > if(($fname) && ($lname) && ($email)) > { echo "test"; } > > Is there an easier way to write the IF line? > > Thank You > > .:: Nathan Cook [ ncook@pcsedu.com ] ::. > Systems & Network Administrator :: Programmer > [ phone - 208.343.3110 ][ pager - 208.387.9983 ] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#36519) next »