Re: Beginners query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






website: http://5go.cc/
QR Code Generator: http://5go.cc/QRCodeGenerator
"Jim Giner"  写入消息 news:D1.99.60454.91F55A45@xxxxxxxxxxxx... 

On 1/1/2015 3:28 AM, Sachin Raut wrote:
> 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
>
1 - tells you if a var is defined
2 - tells you if the var is null or not yet defined.
3 - using this as an 'if' condition tells you whether a var is 'not 
equal' to null 

plz more note false, null, 0, and empty string, in this case the are same

BTW - all of this can be found in the manual online.  You should spend 
the time to read some of the introductory items.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux