« | »

About Isset()

According to php.net PHP Isset is:

Determine if a variable is set and is not NULL.

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 byte (“\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.

What does that mean? Bascially, if the users clicks a button, you want to see if they did it.

$info = ""';

if (isset($info)) {
    echo " Info is blank";
}

The above script will validate if info is set or not.

»crosslinked«

Category: PHP Script
Both comments and pings are currently closed.

Comments are closed.

Flickr Photos

Quick Contact

Your Name (required)

Your Email

Your Message

captcha