PHP isset() function used to check if any variable, session variable, any array, any POST, any GET, any function is set or not this function returns true or false. So this function take an argument a variable, array, session variable, function or anything and check if this holds anything or empty if that is empty this function returns false, if that is not empty that returns true.
Example of ISSET() function
[php]<?php
$my_name = ‘Ateeq’;
if(isset($my_name)) {
echo ‘My name is ‘.$my_name;
} else {
echo ‘My name is not set.’;
}
if(isset($my_email)) {
echo ‘My email is set.’;
} else {
echo ‘my Email is not set.’;
}
?>[/php]
This php will return following 2 results.
1) My name is set ATeeq
2) My email is not set.
isset() php function is default build in php function which we use to check if anything is set or not.