I have an array as follows using var_dump
array(26) {
["SUPPLIER_NAME"]=>
string(14) ""Company Ltd""
["INACTIVATE"]=>
string(13) ""Keep Active""
["SUPPLIER_INACTIVE_DATE"]=>
string(0) ""
["SITE_INACTIVE_DATE"]=>
string(0) ""
["ADDRESS2"]=>
string(0) ""
["ADDRESS3"]=>
string(0) ""
}
However when I try and do the following, it's blank, no value returns
echo $array["SUPPLIER_NAME"]
When I do any other key, it works, just not on SUPPLIER_NAME
Any ideas?
EDITED
We consume an array as follows (I'm just referencing the first key in this array):
echo '<pre>';
var_dump($result[0]);
echo '</pre>';
This produces:
array(26) {
["SUPPLIER_NAME"]=>
string(14) ""Company Ltd""
["SUPPLIER_TYPE"]=>
string(13) ""Keep Active""
...
...
["ADDRESS2"]=>
string(0) ""
["ADDRESS3"]=>
string(0) ""
}
I then try and do the following which spits out nothing:
echo '<pre>';
print_r($result[0]["SUPPLIER_NAME"]);
echo '</pre>';
However, this produces the correct data (and every other key works as well):
echo '<pre>';
print_r($result[0]["SUPPLIER_TYPE"]);
echo '</pre>';
I did the following:
echo '<pre>';
var_dump(array_keys($result[0]));
echo '</pre>';
I got:
array(26) {
[0]=>
string(16) "SUPPLIER_NAME"