mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Cleaning docs for empty().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@33128 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
519544ccbd
commit
f2d7cb6ba9
1 changed files with 5 additions and 3 deletions
|
@ -58,11 +58,13 @@ print $double_value_of_var; // prints 122.34343
|
|||
<informalexample>
|
||||
<programlisting role="php">
|
||||
$var = 0;
|
||||
if (empty($var)) { #evaluates true
|
||||
print '$var is either 0 or not at all set';
|
||||
|
||||
if (empty($var)) { // evaluates true
|
||||
echo '$var is either 0 or not set at all';
|
||||
}
|
||||
|
||||
if (!isset($var)) { // evaluates false
|
||||
print 'The $var is not set at all';
|
||||
echo '$var is not set at all';
|
||||
}
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
|
Loading…
Reference in a new issue