note 12793 deleted from function.isset by sniper

From: Date: Mon, 06 Oct 2003 03:00:15 +0000
Subject: note 12793 deleted from function.isset by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57871@lists.php.net to get a copy of this message
Note Submitter: packman@belgacom.net ---- I made a very handy function that checks if multiple variables are set. It is very usefull when processing forms, or adding data into databases. I was very suprised that the isset function didn't take more than one argument, I hope they will implement it like this in the future. This is the function: (indentation is completely screwed up, please fix this before using) <?php // isset multiple argument checker function ismset() { $ac = func_num_args(); for ($i = 0; $i < $ac; $i++) { if (!isset(func_get_arg($i))) return false; } return true; } ?>

« previous php.notes (#57871) next »