Thread: detect number
View Single Post
  #5  
Old 12-24-2006, 09:58 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
That's really weird...

Anywho:
PHP Code:
if (float(var) != -|| var == "-1"
I guess when comparing a string to a floating point/integer, it's treated as -1... :/
Works Thanks
__________________
Reply With Quote