note 40400 deleted from function.unset by irchtml

From: Date: Wed, 03 Mar 2004 05:11:00 +0000
Subject: note 40400 deleted from function.unset by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-66140@lists.php.net to get a copy of this message
Note Submitter: phisys.NOSP4M@netscape.net ---- You also may wan't to unset several variables at once for speed, just use a simple function like this: <? function unset_vars() { $numargs = func_num_args(); $arg_list = func_get_args(); for ( $i = 0; $i < $numargs; $i++ ) { unset($arg_list[$i]); } } ?> Then simply pass each var as argument to this function: <? unset_vars($var1, $var2, ... , $varN); ?>

« previous php.notes (#66140) next »