I am trying to access an array value by using a key. My code works fine except when there is a registered trademark in the key. How do I get around this?
$map = array(
'Education'=>'643',
'STORMS®'=>'644',
);
print $csv_line[$i]; // prints STORMS®
print $map[$csv_line[$i]]; // prints nothing
print $map['STORMS®']; // prints the value I need
It is html special character, you can
preg_replace or str_replaceit if you want.special character, htmlentities, normalizer