php get only the first letter code example
Example 1: php get first character of string
$firstStringCharacter = substr("hello", 0, 1);
Example 2: get only the first two word from a string php
$message = preg_split('/[\s,]+/', $message, 3)
$firstStringCharacter = substr("hello", 0, 1);
$message = preg_split('/[\s,]+/', $message, 3)