Answers for "how to check numaric in php"

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

Browse Popular Code Answers by Language