Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php get last digit of number
ghanshyam.mirani
Programming language:
PHP
2021-05-16 20:37:09
0
Q:
php get last digit of number
Kristanto
Code:
PHP
2021-06-23 04:24:59
$number
=
12356
;
$lastDigit
=
$number
%
10
;
echo
$lastDigit
;
// 6
-1
Tags
number
git
get
php
php get
digit
last
Related
get last element of array php
php get first digit of number
php get last element of array
get last element from array in php
get last month php
php substring last 4 characters to censure credit card
getting last day of next month in php
key of last element php
how to get last array element in php
get last month using php
get last character of string php
php last of string till /
php define array first 10 number
php last day of month
get the last comma position of string in php
mysql get the last id php
take last four digits php
php get last array element
get key of last element php
New to Communities?
Join the community