php extract 2 first caract of string code example Example: php get first character of string $firstStringCharacter = substr("hello", 0, 1);