how to know variable is set in php

It is for static page, dynamic page, website, SEO, performance and other web development discussion
Joshi jahanvi

how to know variable is set in php

Postby Joshi jahanvi » Fri Oct 31, 2014 5:48 pm

How can we determine whether a variable is set?


sonall gajera

Re: how to know variable is set in php

Postby sonall gajera » Tue Jul 07, 2015 10:58 am

--> If a variable has been unset with unset(), it will no longer be set. isset() will return FALSE if testing a variable that has been set to NULL. Also note that a null character ("\0") is not equivalent to the PHP NULL constant.

-->If multiple parameters are supplied then isset() will return TRUE only if all of the parameters are set. Evaluation goes from left to right and stops as soon as an unset variable is encountered.


Return to “PHP, HTML, MYSQL and Web Hosting”

Who is online

Users browsing this forum: No registered users and 1 guest