Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] incrementing in arrays From: Alfred Perlstein (bright <email protected>)
Date: 05/10/00

* Andres Montiel <amontiel <email protected>> [000510 01:33] wrote:
> I have an array like the following:
>
> $j = 1;
> while ($j++ < 10) {
> if ( $Ret$j[$ct] == "") {
> $Ret$j[$ct] = "N";
> }
> else {
> $Ret$j[$ct] = $Ret$j[$ct];
> }
> }

try:
 ${"Ret$j"}[$ct]

-Alfred

-- 
-Alfred Perlstein - [bright <email protected>|alfred <email protected>]
"I have the heart of a child; I keep it in a jar on my desk."

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>