I am sorting out data from my database using PHP and needed to know if the string(varchar) value starts with a letter or a number, so i am writing a function to check this.
Below is my code, I got the first letter of the string and now my next step is to identify if its a Letter or a number,can PHP achieve this? any suggestions would be great thanks!
function StartWith($str) {
return $str[0];
}
echo StartWith('AdamSavior');