Jump to content

How can I check if a STRING is bigger than.. 'x'


TeddyKiller

Recommended Posts

I have a Users DOB put into Age.

If this Age is bigger than 18 (for example) then display certain information.

 

$age would be the variable to hold the string of their age. How can I do this?

 

I'm imagining simply doing

if($age > 18) wouldn't do the job.. as $age is a string. . .

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.