This is what i’ve got so far, but i cant seem to figure out the proper way to have it remove spaces. Any ideas?
preg_replace('[a-z]', "", strtolower($_GET["myvar"]));
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m guessing you are trying to remove everything except lowercase letters. If that is the case, try this:
This is will transform
$_GET["myvar"]to all lowercase letters then remove anything that isn’t a lowercase letter.