get first two characters of a string in php code example
Example 1: take last four digits php
$newstring = substr($dynamicstring, -7);
Example 2: php get first character of string
$firstStringCharacter = substr("hello", 0, 1);
$newstring = substr($dynamicstring, -7);
$firstStringCharacter = substr("hello", 0, 1);