I was trying to find a quick and easy method to check if the first letter in a string is a number. A lot of the functions and methods I\'ve seen on S.O seem over complicated
It won't work on empty strings, so you should check the offset prior accessing it:
$result = isset($string[0]) ? is_numeric($string[0]) : false;