madspof Posted October 3, 2007 Share Posted October 3, 2007 Is there a function that checks if there is a number or letter in a variable. thnks madspof Quote Link to comment Share on other sites More sharing options...
MmmVomit Posted October 3, 2007 Share Posted October 3, 2007 Regex to the rescue. preg_match('/[A-Za-z0-9]/', $your_variable); I'm not the best with regexes just yet, so that may not be 100% correct. Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted October 3, 2007 Share Posted October 3, 2007 try preg match Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.