I want to use strings that come from parsing an external XML document as indices in an array. Since I do not know what kind of strings are held in that document - are there any checks or cleansing processes I should use to make sure there is never a string that php cannot use as a key in the array?
The following answers my question about the size of strings used (limited only by memory available) but not whether there are any special kinds of characters that wouldn't work as keys: Are there size limits to PHP array keys? What are the limits in general for PHP arrays?