knowram Posted December 19, 2006 Share Posted December 19, 2006 Is there a php function that will check to see if a variable consists of either a number or letter combination?thanks for the help Quote Link to comment Share on other sites More sharing options...
simcoweb Posted December 19, 2006 Share Posted December 19, 2006 Here's what you need:http://uk2.php.net/manual/en/function.gettype.php Quote Link to comment Share on other sites More sharing options...
utexas_pjm Posted December 19, 2006 Share Posted December 19, 2006 http://www.php.net/is_numeric Quote Link to comment Share on other sites More sharing options...
doni49 Posted December 19, 2006 Share Posted December 19, 2006 Do you mean see if it's a combination of letters and numbers? As in validate to see if it' meets your PW and/or username requirements? If that's what you mean, have a look at www.php.net/ereg and www.php.net/eregi. Otherwise the is_numeric function to which you were given a link will help. 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.