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
> 
> 
> 
> 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to