Get first letter of a string in php

by satheeshkumar 2012-09-17 13:13:25

Get first letter of a string in php,

$str = "Hello";
echo $str[0];


it will return the first letter of the string...
960
like
0
dislike
0
mail
flag

You must LOGIN to add comments