In PHP I have returned some value from the database to my view page. Here I want to get the last 3 digits from my return value. if my return value is like that:
<?php $value = "abc123"; echo $value; ?>
Output: abc123
I want to get my output result 123.
How can I get the last 3 digits of a string in PHP?
Question and answer is powered by AnsPress.io