Jump to content

how can i validate a number or letters with numbers with PHP


Recommended Posts

As I read the requirements, he wants to match

1. numbers, or

2. numbers and letters

 

ie, not just letters

 

Which is precisely what ctype_alnum() does, with 'alnum' representing AlphaNumeric.

As I read the requirements, he wants to match

1. numbers, or

2. numbers and letters

 

ie, not just letters

 

You're right, you're right. Even after reading it 5 or 6 times, I still didn't catch that it couldn't be just letters. I swear I'm just dense sometimes.

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.