get first two letters of string php code example
Example 1: php nth characters from end of string
$rest = substr("abcdef", -3, 1); // returns 'd'
Example 2: get only the first two word from a string php
$message = preg_split('/[\s,]+/', $message, 3)