Is there a way to strip of any spaces before and after a word in PHP? If there is a space on a user's last name or first name, I want to strip off that space before and after before I insert into the database.
Any suggestions is appreciated.
Lauj
trim($string);
regards
Thanks!