...

View Full Version : pushing values in array ??



PHPycho
07-03-2007, 12:24 PM
Hello forums !!
I would like to push the values in array(without specifying index).
Can anybody give me the suggestion.
Note: It should be equivalent to PHP's

$exp_array = array();
$exp_array[] = "value1";
$exp_array[] = "value2";
(without specifying indexes)
...........etc

Thanks in advance to all of you.

Mr J
07-03-2007, 01:49 PM
myArray[myArray.length] will add to the end of myArray



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum