This code snippet will show you how to get the first letter of a string using PHP.

<?php
function ywt_get_first_char($str) {
    if($str)
        return strtolower(substr($str, 0, 1));

    return false;
}

echo ywt_get_first_char('Hello'); //print H
?>