Login   Register  
PHP Classes
elePHPant
Icontem

File: PHP_toolbucket/SoftMoon/is_number.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2012-02-12 21:45
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;  }

    
?>