Write a PHP script to get the last three characters of a string.
Sample String : 'rayy@example.com'
<?php $str1 = 'rayy@example.com'; echo substr($str1, -3)."\n"; ?>
Sample Output:
com
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer