Answers for "php check number or not if"

PHP
2

php is variable a number

if(is_numeric($what_am_i)){
	//true
}
Posted by: Guest on September-24-2020
3

php check if string or number

<?php if (is_numeric("cake")) { echo "Yes"; } else { echo "No"; } ?>
Posted by: Guest on February-08-2020

Code answers related to "php check number or not if"

Browse Popular Code Answers by Language