I want to get the first letter of a string and I've noticed that
substr($str, 0, 1)
Yes. Strings can be seen as Char Arrays, and the way to access a position of an array is to use the
 operator, so there's no problem at all in using
$str (and I'm pretty sure is much faster than the substr method).