samedi 6 février 2021

PHP append random number if value have only 1 number

I am using a code to view the TMDB movie rating generally the rating of the movie is 3 characters for example: 7.4 but, many times the rating is only one character like for example 6. I should add the value .4 or a random number with the dot only if the number is single and doesn't have 3 characters.




Aucun commentaire:

Enregistrer un commentaire