PHP Classes

File: PHP_toolbucket/SoftMoon/is_number.php

Recommend this page to a friend!
  Classes of Joseph   Rainbow Maker   PHP_toolbucket/SoftMoon/is_number.php   Download  
File: PHP_toolbucket/SoftMoon/is_number.php
Role: Auxiliary script
Content type: text/plain
Description: PHP utility function
Class: Rainbow Maker
Create transparent gradient images
Author: By
Last change:
Date: 12 years ago
Size: 150 bytes
 

Contents

Class file image Download
<?php

Function is_number($n) {
    if (
is_numeric($n) or is_string($n) and preg_match('/^\.?[0-9]/', $n)) return TRUE;
    else return
FALSE; }

   
?>