Hi, i would like to find out how check if there are spaces in a string (username). Does anyone know how to do this?
if (strstr(trim($myVar),\' \')) { // error: contains a space }
...of course, this will not check for any other characters that may be illegal in a \"name\" like tabs, newlines, etc. For that you will need to use regular expressions.
-- Rich