Categories




PreviousNext
isset() function in PHP    
 Send mail Views:271
Belongs to : PHP
Facebook Bookmarkbookmark this pageStumbleupon Bookmark 

isset() function:
isset() determines whether a certain variable has already been declared by PHP. It returns a boolean value true if the variable has already been set, and false otherwise, or if the variable is set to the value NULL.

Consider the following script:

if (isset($first_name)) {

print '$first_name is set';

}

This code snippet checks whether the variable $first_name is defined. If $first_name is defined, isset() returns true , which will display ' $first_name is set. ' If it isn’t, no output is generated.

funny pictures and videos
funny pictures and videos
online games
embed code


By - Nirmala, On - 2010-05-04
Send This
PreviousNext

User Comments


Add NEW Feedback:

Name :     Email :

Website Monitoring Web hosting by Hiox India Contact Us   Privacy Policy   Terms and Conditions