trim string php at index code example
Example 1: php get first character of string
$firstStringCharacter = substr("hello", 0, 1);
Example 2: print only some characters of a string in php
substr(string,start,length)
$firstStringCharacter = substr("hello", 0, 1);
substr(string,start,length)