Resource constants (bug #29534)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@208827 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2006-03-07 00:29:13 +00:00
parent a6be903d14
commit f4ab2c2307

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.42 $ -->
<!-- $Revision: 1.43 $ -->
<chapter id="language.constants">
<title>Constants</title>
@ -68,6 +68,7 @@ define("__FOO__", "something");
Only scalar data (<type>boolean</type>, <type>integer</type>,
<type>float</type> and <type>string</type>) can be contained
in constants.
Do not define <type>resource</type> constants.
</simpara>
<simpara>
You can get the value of a constant by simply specifying its name.