samedi 29 décembre 2018

when writing an if statement in PHP, is there a numbers equivalent to the string-length (strlen) function?

I learned how to use the string-length function <?php //example $text = "this way"; if (strlen($text) > 5//characters//){ echo "something"; }

and I want to use something like it that applies to number variables.

$text = 7;

What function would that be?

Aucun commentaire:

Enregistrer un commentaire