When using multi-dimensional arrays, always use / / braces around arrays when inside of strings echo "This works: {$arr['foo'][3]}"; / / Works. echo "This works:". $arr['foo'][3]; echo "You can even write {$obj - values[3] - name}"; echo "This is the value of the var named $name: {${$name}}";?
String access by character