Horje
How to add is_numeric() Function in PHP | PHP Tutorial Code

Follow the example.


index.php
Example: PHP
<?php
 
$num = 12;
if (is_numeric($num)) {
        echo $num . " is numeric";
    }
    else {
        echo $num . " is not numeric";
    }
 
?>

Output should be:

How to add is_numeric() Function in PHP




Read Full::
PHP String Code
Category:
PHP Tutorial Code
Sub Category:
PHP String Code
Uploaded:
1 month ago
Uploaded by:
Admin
Views:
1

Related Articles
How to add is_numeric() Function in PHP

More Articles
How to extract words from Sentence in PHP PHP String Code
How to check if string is_numeric() Function in PHP PHP String Code

Share on: