programming-examples/php/String/PHP script to get the last three characters of a string..php

4 lines
68 B
PHP
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<?php
$str1 = 'rayy@example.com';
echo substr($str1, -3)."\n";
?>