View Single Post
  #5 (permalink)  
Old 05-23-2008, 12:23 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: DEFINE and GLOBAL variables in PHP

defined function used to check whether a given named constant exists

PHP Code:
<?php
/* Note the use of quotes, this is important.  This example is checking 
 * if the string 'CONSTANT' is the name of a constant named CONSTANT */
if (defined('CONSTANT')) {
    echo 
CONSTANT;
}
?>
__________________
With,
J. Jeyaseelan

Everything Possible
Reply With Quote