Jump to content

[SOLVED] Seeing if a result is numeric or string?


Solarpitch

Recommended Posts

Hi,

 

How can I test to see if a result from a DB is numeric or not?

 

Say I have a variable $value. $value might return either a number or a string from the database, but I then want to go...

 

if($value == //is numeric)

{

// do something...

}

 

can this be done easily?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.