Karakter Kanan PHP
$newstring = substr($dynamicstring, -7);
Excited Elephant
$newstring = substr($dynamicstring, -7);
// singlebyte strings
$result = substr($myStr, 0, 5);
// multibyte strings
$result = mb_substr($myStr, 0, 5);