In php doing the below would assign the value to the next free index
[php]
// var $array has indices up to [7]
$array[] = "foo";
// $array[8] will now hold 'foo'
[/php]
Is there a way to do this in javascript?
[php]
// var $array has indices up to [7]
$array[] = "foo";
// $array[8] will now hold 'foo'
[/php]
Is there a way to do this in javascript?
Comment