Categories




PreviousNext
isset() function in PHP    
 Send mail Views:128
Belongs to : PHP
Facebook Bookmarkbookmark this page Digg Bookmark Delicious BookmarkStumbleupon Bookmarkshare with orkut Post to Google Buzz

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.

Pictures and Videos
Online Calculators
embed code


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

User Comments


Add NEW Feedback:

Name :     Email :

 Server Monitoring Web hosting by Hiox India Privacy Policy Terms and Conditions