Sjaak Posted December 21, 2010 Share Posted December 21, 2010 How do i remove with %20%20%20 from a pictures name? Silly question but my pictures wont show because of the %20%20%20 in the picturename. Link to comment https://forums.phpfreaks.com/topic/222285-remove-202020-from-picture-name/ Share on other sites More sharing options...
Sjaak Posted December 21, 2010 Author Share Posted December 21, 2010 Srry, I just found it: $info_item1='text with spaces '; $Pattern = '/\s*/m'; $Replace = ''; $info_item1= preg_replace( $Pattern, $Replace, $info_item1 ); Link to comment https://forums.phpfreaks.com/topic/222285-remove-202020-from-picture-name/#findComment-1149849 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.