I use a encoded string as a key in array, and also uses the same string as a value in the array, like below code indicates:
$string = 'something in some encode';
$list = array();
$list[$string]['name'] = $string;
when I print_r the array out(just print_r without headers/encoding specific), found that the key in the array and it's 'name' value are not as printed as a same string, it seems to have different encoding.
I'm doing this with chinese character. In php.ini I don't have specific encoding line(Don't know whether it has anything to do with this).
Is there anything about the string encoding in Array keys? Or just I got them in a wrong way? Thanks for your help.