Home >Backend Development >PHP Tutorial >A question about PHP arrays and strings

A question about PHP arrays and strings

WBOY
WBOYOriginal
2016-07-25 08:50:43806browse
I don’t understand this. Please explain.
  1. $str='abcde';
  2. echo $str{3}; //d
  3. echo $str[3]; //d
Copy code


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn