Vérifier si une variable est de type ‘int’

Author:


Download

<?php
$a = 255;
echo "est_int($a) = " . (is_int($a) ? "oui" : "non") . "
";

$a = '255';
echo "est_int($a) = " . (is_int($a) ? "oui" : "non") . "
";
?>

Leave a Reply

Your email address will not be published. Required fields are marked *


seven × 4 =