ram4nd Posted January 15, 2010 Share Posted January 15, 2010 How can I remove everything, but numbers, letters and spaces from string? Link to comment https://forums.phpfreaks.com/topic/188586-how-can-i-remove-everything-but-numbers-letters-and-spaces-from-string/ Share on other sites More sharing options...
JAY6390 Posted January 15, 2010 Share Posted January 15, 2010 $string = preg_replace('/[^ a-z0-9]+/i','',$string); Link to comment https://forums.phpfreaks.com/topic/188586-how-can-i-remove-everything-but-numbers-letters-and-spaces-from-string/#findComment-995653 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.