Re: how to get the array
| From: | Hans Prins | Date: | Fri, 21 Feb 2003 14:07:48 +0000 |
| Subject: | Re: how to get the array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136500@lists.php.net to get a copy of this message | ||
$globalArray = $_POST['yourPostArray'];
$arrayCount = count($globalArray);
// this loops and prints all array values for the amount
// of values found with the count function above
for ($count = 0; $count < $arrayCount; $count++) {
print $globalArray[$count];
}
goodluck :)
"Pei_world" <pei_world@hotmail.com> schreef in bericht
news:20030221135006.44734.qmail@pb1.pair.com...
> if my post variable is
> $_POST[array]
> How can I get the individual element of that array?
> I found one way to do this is $two_array=$_POST[array],
> but is there any other way to do so?
>
> thx
>
> --
> Sincerely your;
>
> pei_world ( .::IT::. )
>
>