Re: Beginners query

From: Date: Sat, 03 Jan 2015 19:04:19 +0000
Subject: Re: Beginners query
Groups: php.general 
Request: Send a blank email to php-general+get-324218@lists.php.net to get a copy of this message
Wan Chaowei am Freitag, 2. Januar 2015 - 22:20: > i think you don't read any Document > > isset: http://php.net/manual/en/function.isset.php > empty: http://php.net/manual/en/function.empty.php > > > > website: http://5go.cc/ > QR Code Generator: http://5go.cc/QRCodeGenerator > "Sachin Raut" 写入消息 > news:CAEg3z6F9m+E=R+c6ndnZLOVcq_BcotUHTy2qNcMvEoS9Uk+kmg@mail.gmail.com.... > > > Happy New Year to all members of PHP group. > > I just want to know the difference between following 3 statements. Or are > they all does the same thing. > > 1. isset($a) > 2. !empty($a) > 3. $a!="" > > Thanks > Sachin if $a exixsts, then 1 is TRUE even when 2 and 3 are FALSE 2 may be slower than 3, but they mean the same Greetings, Niklaus

« previous php.general (#324218) next »