note 22611 deleted from function.each by philip

From: Date: Sun, 14 Jul 2002 01:31:26 +0000
Subject: note 22611 deleted from function.each by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33040@lists.php.net to get a copy of this message
This is a small loop I use to addslash all post vars when register globals is set to true. I usually made wrote one addslashes call for every variable when I was learning PHP. Maybe this helps somebody out of that misery. while(List($key,)=each($HTTP_POST_VARS)) $$key=addslashes($HTTP_POST_VARS[$key]); Cheers Hugo

« previous php.notes (#33040) next »