I want to get the first letter of a string and I\'ve noticed that $str[0] works great. I am just not sure whether this is \'good practice\', as that notation is
$str[0]
The {} syntax is deprecated as of PHP 5.3.0. Square brackets are recommended.