note 40400 added to function.unset

From: Date: Tue, 02 Mar 2004 23:11:04 +0000
Subject: note 40400 added to function.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-66131@lists.php.net to get a copy of this message
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); ?> ---- Manual Page -- http://www.php.net/manual/en/function.unset.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40400 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40400&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40400&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66131) next »