Am 14.04.2011 12:02, schrieb Richard Quadling:

> I always declare my variables. So, I don't want to use isset() as they
> will be an incorrect test. I use is_null(). Specifically testing the
> value. If I've made a mistake and NOT declared the variable (or made a
> typo), I want to know. I don't want to hide it with isset()/empty()

yes and no

$config['modulename'] = array
(
 'icon' => 'bla.gif',
 'default_params' => array
 (
  'autocleanup'       => 1,
  'ignore_user_abort' => 0,
 )
);


if 'default_params' are optional you NEED isset() to decide
do something with them or skip operations

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to