PHP получить первые 5 символов строки
$result = substr("Hello How are you", 0, 5); //first 5 chars "Hello"
Friendly Hawk
$result = substr("Hello How are you", 0, 5); //first 5 chars "Hello"
$firstStringCharacter = substr("hello", 0, 1);
$newstring = substr($dynamicstring, -7);