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:
foobar 2000-09-29 23:08:49 +00:00
parent 519544ccbd
commit f2d7cb6ba9

View file

@ -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>