fork download
  1. <?php
  2.  
  3. $a = 'wallace';
  4.  
  5. var_dump($a[0]);
  6. var_dump($a['string']);
Success #stdin #stdout #stderr 0.01s 82560KB
stdin
Standard input is empty
stdout
string(1) "w"
string(1) "w"
stderr
PHP Warning:  Illegal string offset 'string' in /home/YY2Dls/prog.php on line 6