Re: Tough one?
| From: | Jason Stechschulte | Date: | Wed, 21 Feb 2001 18:39:49 +0000 |
| Subject: | Re: Tough one? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41034@lists.php.net to get a copy of this message | ||
On Wed, Feb 21, 2001 at 01:34:10PM -0500, Mike wrote:
> $keys = array_keys($HTTP_POST_VARS);
> for($x = 2; $x < count($keys); $x++)
> {
>
> $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',";
}
$updateString = ereg_replace(",$", "", $updateString);
That should take care of the trailing comma.
--
Jason Stechschulte
jpstech@unoh.edu
--
One of the reasons Perl is faster than certain other unnamed interpreted
languages is that it binds variable names to a particular package (or
scope) at compile time rather than at run time.
-- Larry Wall in <199709050035.RAA29328@wall.org>