Aims:
isset($v)
, which returns true if
$v
is non-null; false otherwise
$x = 3; $y = NULL;
isset( $x )
isset( $y )
isset( $z )
$val
, write some PHP
which echoes 'Yes' if $val
is in an array called $a
,
and 'No' otherwise
(using ==
to test for equality)
$a
$a
In fact, there are built-in functions for each of the above, so we didn't need to write our own PHP: