Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Array.push (See related posts)

var sEmployees:Array = [];
sEmployees.push(["Ramesh","9841026070"]);
sEmployees.push(["Rajesh","9940350708"]);
sEmployees.push(["Latha","044-42151184"]);
sEmployees.push(["Buvanesh","000-0000000"]);

for (var i:Number=0; i<sEmployees.length; i++){
trace("Name:" + sEmployees[i][0]);
trace("Phone:" + sEmployees[i][1]);
}

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts