I need to split the first letter from variable $name. How I can to do it?
$name = $userData[\'name\'];
How I can to get the first letter?
You can get the first letter of a string using array syntax!
$firstletter = $userData['name'][0];