The conversation between human and AI assistant.
String indexing PHP?
That makes sense. Can you give me an example of how to use string indexing in PHP?
Of course. Let's say you have a string variable called $str that contains the value "Hello World". To access the first character of the string, you would write $str[0]. This would return the letter "H".