Answers for "get last four digits of string php"

PHP
3

take last four digits php

$newstring = substr($dynamicstring, -7);
Posted by: Guest on May-04-2020
0

php get last digit of number

$number = 12356;
$lastDigit = $number % 10;
echo $lastDigit; // 6
Posted by: Guest on November-12-2020

Code answers related to "get last four digits of string php"

Browse Popular Code Answers by Language