I have an array in PHP that looks like
Array ( [123654] => Array ( [0] => 123456789123456789 [1] => 1 [2] => 06/24/2011 [3] => 06/24/2012 [4] => 12355.44 [5] => 55321.55 ) )
I know in javascript I could access the data I need by doing array[0][0], how would I go about doing this in PHP. It is the 123456789123456789 value that I’m looking at getting.
If you don’t know the exact keys, you could do something like this:
array_valuesreplaces the keys by simple numbers from0ton-1(wherenis the count of values), by that you can access your desired value with the indexes [0][0]. See more here