Answers for "get last 4 digits of number 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 4 digits of number php"

Browse Popular Code Answers by Language