get first four letter in a word in pgp code example Example: php get first character of string $firstStringCharacter = substr("hello", 0, 1);