i have the following multidimensional array:
Array ( [0] => stdClass Object ( [array] => Array ( [0] => 6112010651088 [1] => Bill [2] => Choice ) ) [1] => stdClass Object ( [array] => Array ( [0] => 6702015707081 [1] => test [2] => data2 ) ) )
If you break the first array down using
foreach ($point1 as $val)
{
print_r($val);
}
you get:
stdClass Object ( [array] => Array ( [0] => 6112010651088 [1] => Bill [2] => Choice ) )
stdClass Object ( [array] => Array ( [0] => 6702015707081 [1] => test [2] => data2 ) )
so basically u have an array with 2 objects of array with 3 units of data each, how do i access this object stdClass array now, cos if i go $val[0] instead of $val i get
Fatal error: Cannot use object of type stdClass as array
will print: