Re: simple array question

From: Date: Mon, 27 May 2002 10:49:33 +0000
Subject: Re: simple array question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99351@lists.php.net to get a copy of this message
Jose, Try this: for ($i = 0; $i < $whatever; $i++) { $myArray[] = // ... } /bsh/ Jose Jeria wrote:
in javascript i can build an array doing like this: for(i=0; i < whatEver.length; i++){
    myArray[myArray.length] = //....
} What is the equivalent to this in PHP? Is this the only way: $myArray[count($myArray)] = //.. /J


« previous php.general (#99351) next »