# Accessing objects inside an array

**URL:** <https://forum.kirupa.com/t/accessing-objects-inside-an-array/296999>\
**Category:** Uncategorized\
**Created:** [September 23, 2009, 11:30pm UTC](https://forum.kirupa.com/t/accessing-objects-inside-an-array/296999 "2009-09-23T23:30:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mac345](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mac345](https://forum.kirupa.com/u/mac345)\
**Post date:** [September 23, 2009, 11:30pm UTC](https://forum.kirupa.com/t/accessing-objects-inside-an-array/296999/1 "2009-09-23T23:30:46Z")

</div>

Hi all,  
i have a problem accessing the objects present inside an array.

For example,

var array:Array=new Array();  
var obj:Object = {};  
var int a=1; var int b=1;var int c=1; var int d=1;

for(i=0;i\<4;i++)  
{  
obj[“a”]=a + i;  
obj[“b”]=b + i;  
obj[“c”]=c + i;  
obj[“d”]=d + i;

array.push(obj);  
}

Later I am able to get the array length but how can i get the values inside the objects??

One more thing is i am sending this array to php so how can i access the object values inside an array in php.

can anyone please provide me with the solution.  
Thanks
