![]() |
|
|
+ Search |
![]()
|
Oct 21st, 2006 03:20
Chad Currie, Lauren Green, http://www.blogvoid.com/category/php-programming/
To remove leading spaces from user input, you can use $userinput = ltrim($userinput); if you wish to remove both leading spaces and trailing spaces use $userinput = trim($userimput);