I have a 2D Array. If I do print_r($equities[0]) , I get:
Array
(
[No.] => 1
["Ticker"] => "CAFE"
["Company"] => "iPath Pure Beta Coffee ETN"
["Price"] => 27.59
)
I then try to print the ‘Ticker’ for the first element like this:
echo $equities[0]["Ticker"];
But, it does not print anything. How can I print the ticker?
You’ve got quotes in your dump, which means the quotes are encoded into the array key names as well (e.g. double quoted).
Try
note the extra single quotes.