i have a question about numbers in php.
Example i have this numbers
1111122333344
I want to show that number one have five digits, number two have two digits and number three have four digits and for have two digits. I want to seperate it. But how can i do that? Thank you for help. Here is example:
Number that i have 1111122333344
number 1 have = 5 (digits)
number 2 have = 2 (digits)
number 3 have = 4 (digits)
number 4 have = 2 (digits)
I have tried this and its not working
$numbers = '1111122333344';
if ($numbers > 3) {
echo '2';
}
(Sry for bad eng) Thank you!
Aucun commentaire:
Enregistrer un commentaire