|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbesho (last revision 2023-10-24 06:24 UTC by beshob998 at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-13 04:58 UTC] derick@php.net
[2023-10-24 06:24 UTC] beshob998 at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 22:00:01 2025 UTC |
The function defined() always return false within a function or class, although the value of the constant is still available. the code : <?php define(NAME, "value"); function f() { if (defined(NOM)) echo "NOM is defined"; echo NOM; } f(); ?> will print "value" only. Currently tested with EasyPHP running with a Windows XP computer.