Re: Beginners query
| From: | Jim Giner | Date: | Thu, 01 Jan 2015 14:52:10 +0000 |
| Subject: | Re: Beginners query | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324205@lists.php.net to get a copy of this message | ||
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 defined2 - 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 BTW - all of this can be found in the manual online. You should spend the time to read some of the introductory items.