programming-examples/php/String/PHP script to get the last three characters of a string..php
2019-11-15 12:59:38 +01:00

4 lines
68 B
PHP

<?php
$str1 = 'rayy@example.com';
echo substr($str1, -3)."\n";
?>