<?php $a = 'wallace'; var_dump($a[0]); var_dump($a['string']);
Standard input is empty
string(1) "w" string(1) "w"
PHP Warning: Illegal string offset 'string' in /home/YY2Dls/prog.php on line 6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!