php check string is int

33

 <?php if (is_numeric(887)) { echo "Yes"; } else { echo "No"; } ?>
 <?php if (is_numeric("cake")) { echo "Yes"; } else { echo "No"; } ?>

Comments

Submit
0 Comments