I try to access an array element, but for some reason this gives me some trouble.
So I got this array inside $lead
:
Array
(
["City"] => Other
[Company Name] =>
[Company Email] =>
[Contact Form URL] =>
[Comments] =>
)
And I try to access it like this:
var_dump($lead['"City"']);
But for some reason I get an undefined index error:
Notice: Undefined index: "City"
And I have no idea why that is?
EDIT:
This is the output when I use highlight_string(print_r($lead, TRUE));
:
Array
(
["City"] => Other
[Company Name] =>
[Company Email] =>
[Contact Form URL] =>
[Comments] =>
)
Also with this code:
foreach($lead as $k => $v){
var_dump($k);
die();
}
I get:
string(9) ""City""