Re: need help w a for loop
| From: | Ray Hunter | Date: | Mon, 20 Oct 2003 21:46:51 +0000 |
| Subject: | Re: need help w a for loop | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166855@lists.php.net to get a copy of this message | ||
On Mon, 2003-10-20 at 15:35, Colin Kettenacker wrote:
> $categories_array = array();
> for($j=0; $j < $categories_count; $j++){
> $tempval="str_categories".$j;
> array_push($categories_array,$_REQUEST[$tempval]);
> }
Or you could try this:
$categories_array = array();
for( $j = 0; $j < $categories_count; $j++ ) {
$tempval = "str_categories".$j;
$categories[$j] = $_REQUEST[$tempval];
}
--
BigDog