mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Use defined() for constants. See also @ and defined().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@104416 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
918600ab1d
commit
308eaf0256
1 changed files with 8 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.isset">
|
||||
<refnamediv>
|
||||
|
@ -33,7 +33,9 @@
|
|||
<title>Warning</title>
|
||||
<para>
|
||||
<function>isset</function> only works with variables as passing anything
|
||||
else will result in a parse error.
|
||||
else will result in a parse error. For checking if
|
||||
<link linkend="language.constants">constants</link> are set use the
|
||||
<function>defined</function> function.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
|
@ -95,8 +97,10 @@ var_dump( array_key_exists('hello', $a) ); // TRUE
|
|||
</para>
|
||||
<simpara>
|
||||
See also <function>empty</function>,
|
||||
<function>unset</function>, and
|
||||
<function>array_key_exists</function>.
|
||||
<function>unset</function>, <function>defined</function>,
|
||||
<function>array_key_exists</function> and the error control
|
||||
<link linkend="language.operators.errorcontrol">@</link>
|
||||
operator.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
Loading…
Reference in a new issue