Re: global generation
| From: | Kevin Stone | Date: | Mon, 07 Jan 2002 19:06:52 +0000 |
| Subject: | Re: global generation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79721@lists.php.net to get a copy of this message | ||
Wait until after the for loop has completed.
for ($i=0; $i< $num_results; $i++)
{
$variable[$i];
}
global $variable;
> I need to call a generated variable global w/i a function but the
> following doesn't work:
>
> for ($i=0; $i < $num_results; $i++)
> {
> global $variable[$i];
> }
>
> I am trying to pass a similarly created form element to a function. I
> have two questions. Why doesn't this work? And, what else can I do to
> get the same results.
>
> Thanks,
>
> rodney
>