Solution for "php get first letter od string in variable"

$firstStringCharacter = substr("hello", 0, 1);

php get first character of string

function getFirstWord($string) { $arr = explode(' ', trim($string)); return isset($arr[0]) ? $arr[0] : $string; }

get first word from string php

Similar codes for "php get first letter od string in variable"


Latest 'PHP' questions

Added before "php get first letter od string in variable"