networkthis Posted May 16, 2008 Share Posted May 16, 2008 What would be the best method to strip/replace if a user were to enter more then one space in a row? Link to comment https://forums.phpfreaks.com/topic/105891-best-method-to-stripreplace/ Share on other sites More sharing options...
priti Posted May 16, 2008 Share Posted May 16, 2008 trim() to chop off the extra spaces in left and right of the row and if the spaces are part of row data then you can ue a regular expression to formalize your row data. Regards Link to comment https://forums.phpfreaks.com/topic/105891-best-method-to-stripreplace/#findComment-542659 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.