Voting

: eight minus six?
(Example: nine)

The Note You're Voting On

beuc at beuc dot net
18 years ago
"empty() is the opposite of (boolean) var, except that no warning is generated when the variable is not set."

So essentially
<?php
if (isset($var) && $var)
?>
is the same as
<?php
if (!empty($var))
?>
doesn't it? :)

!empty() mimics the chk() function posted before.

<< Back to user notes page

To Top