Follow the example.
Example:
PHP
<?php
$num = 12;
if (is_numeric($num)) {
echo $num . " is numeric";
}
else {
echo $num . " is not numeric";
}
?>
How to add is_numeric() Function in PHP | PHP String Tutorial |
Type: | Php |
Category: | Web Tutorial |
Sub Category: | PHP String Tutorial |
Uploaded by: | Admin |