mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
if: link to information on what evaluates to &false;
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@65790 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
599aee8434
commit
1b7ef904fb
1 changed files with 9 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.47 $ -->
|
||||
<!-- $Revision: 1.48 $ -->
|
||||
<chapter id="control-structures">
|
||||
<title>Control Structures</title>
|
||||
|
||||
|
@ -31,10 +31,14 @@ if (expr)
|
|||
</informalexample>
|
||||
</para>
|
||||
<simpara>
|
||||
As described in the section about expressions, expr is evaluated
|
||||
to its truth value. If <replaceable>expr</replaceable> evaluates
|
||||
to &true;, PHP will execute statement, and if it
|
||||
evaluates to &false; - it'll ignore it.
|
||||
As described in <link linkend="language.expressions">the section about
|
||||
expressions</link>, <replaceable>expr</replaceable> is evaluated to its
|
||||
Boolean value. If <replaceable>expr</replaceable> evaluates to &true;,
|
||||
PHP will execute <replaceable>statement</replaceable>, and if it evaluates
|
||||
to &false; - it'll ignore it. More information about what values evaluate
|
||||
to &false; can be found in the <link
|
||||
linkend="language.types.boolean.casting">'Converting to boolean'</link>
|
||||
section>.
|
||||
</simpara>
|
||||
<para>
|
||||
The following example would display <computeroutput>a is bigger
|
||||
|
|
Loading…
Reference in a new issue