Jump to content

is_numeric ?


spires

Recommended Posts

Hi

 

I want to check if a string has numbers in it.

I've tried using is_numeric, but this on returns true if the string is all numeric.

Not if it's a combination of characters and numbers.

 

How can I check to see if my sting contains numbers.

 

Example:

Spires01      --      Should return True

Spires        --    Should return false

 

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/204716-is_numeric/
Share on other sites

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.