PHP - Arduino communication - the best way?

On the arduino, strings are an array of chars. You can get the individual characters using stringName[0] for the first, stringName[1] is the second, etc.