Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

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


{filelink=15066}

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

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

No comments yet.

Leave a Comment