mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
a6be903d14
commit
f4ab2c2307
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue