RE: [PHP] need help w a for loop

From: Date: Mon, 20 Oct 2003 21:34:18 +0000
Subject: RE: [PHP] need help w a for loop
Groups: php.general 
Request: Send a blank email to php-general+get-166852@lists.php.net to get a copy of this message
Chris W. Parker <> on Monday, October 20, 2003 2:27 PM said: > that's because you've got: > >> array_push($categories_array,'$_REQUEST['.$tempval.']'); > > and not: > >> array_push($categories_array,$_REQUEST[$tempval]); Oh maybe I should explain why your original line wasn't working. You have single quotes around the variable which says to the php interpreter "please turn the following text into a string and don't evaluate any variables" (more or less). Hope this helps. Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/

« previous php.general (#166852) next »