tmyonline Posted October 1, 2010 Share Posted October 1, 2010 Guys: What is the way to remove white spaces in front of a form entry ? Should I use regular expression for this ? Thanks. Link to comment https://forums.phpfreaks.com/topic/214931-how-to-remove-all-white-spaces-in-front-of-a-form-entry/ Share on other sites More sharing options...
Pikachu2000 Posted October 1, 2010 Share Posted October 1, 2010 trim() Link to comment https://forums.phpfreaks.com/topic/214931-how-to-remove-all-white-spaces-in-front-of-a-form-entry/#findComment-1118042 Share on other sites More sharing options...
tmyonline Posted October 1, 2010 Author Share Posted October 1, 2010 Thanks Pikachu2000 for bringing back my memory. How can I forget trim() ? Link to comment https://forums.phpfreaks.com/topic/214931-how-to-remove-all-white-spaces-in-front-of-a-form-entry/#findComment-1118056 Share on other sites More sharing options...
roopurt18 Posted October 1, 2010 Share Posted October 1, 2010 Use ltrim() to remove leading white space. Link to comment https://forums.phpfreaks.com/topic/214931-how-to-remove-all-white-spaces-in-front-of-a-form-entry/#findComment-1118099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.