What is the best way to search for spaces in a string. I'm trying to build a simple login system and I need to check passwords and usernames for spaces. Is there a simpler way than tokenizing the string. Thanks.
One way is to decide on what you want to allow for the username, and then use regular expressions, e.g., with [man]preg_match/man.
Thanks,
That works well. It required me to learn about regular expressions ( I'm a noob). I appreciate the help.