★ wanayoo — archive 1999 http://fr.php.net/manual/function.defined.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Misc.
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this pageDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
Misc.
* connection_aborted
* connection_status
* connection_timeout
* define
* defined
* die
* eval
* exit
* get_browser
* highlight_file
* highlight_string
* ignore_user_abort
* iptcparse
* leak
* pack
* show_source
* sleep
* uniqid
* unpack
* usleep

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: defined
View the source code for this pageSearch the site



Previous page
 define
 Updated
Mon, 08 Jan 2001
die 
Next page


defined

(PHP 3, PHP 4 )

defined --  Checks whether a given named constant exists

Description

int defined (string name)

Returns true if the named constant given by name has been defined, false otherwise.

Example 1. Checking Constants


<?php
if (defined("CONSTANT")){ // Note that it should be quoted
    echo CONSTANT; //
    }
?>
      

See also define() and the section on Constants.


 About Notes


Previous page
 define
 Updated
Mon, 08 Jan 2001
die 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.