Thread: detect number
View Single Post
  #3  
Old 12-24-2006, 09:32 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Tolnaftate2004 View Post
PHP Code:
if (float(var) == var) {
  
// we have a number.

Didn't work :O

PHP Code:
function onCreated()
{
  var = 
"test";
  if (
float(var) == var)
    echo(var @ 
" is a number.");

test is a number
__________________
Reply With Quote