For grabbing the first letter of a string i use substr
substr
$string = "John doe"; echo substr($string,0,1); // output: J
Bu