map200uk Posted April 30, 2007 Share Posted April 30, 2007 say i have the string 'php rocks' i need to somehow add %20 to the string in the space, only way i could think of was a long winded way involving exploding the string, then imploding it and using %20 as 'glue' anyone know of a pre built function or a better way of doing this? it seems to be the only way to get this to work:( mark Link to comment https://forums.phpfreaks.com/topic/49316-solved-a-space-in-a-strinhg/ Share on other sites More sharing options...
monk.e.boy Posted April 30, 2007 Share Posted April 30, 2007 http://uk.php.net/manual/en/function.urlencode.php monk.e.boy Link to comment https://forums.phpfreaks.com/topic/49316-solved-a-space-in-a-strinhg/#findComment-241651 Share on other sites More sharing options...
map200uk Posted April 30, 2007 Author Share Posted April 30, 2007 ahhh your a star cheers mate , shoulda known it was something obvious! thanks Link to comment https://forums.phpfreaks.com/topic/49316-solved-a-space-in-a-strinhg/#findComment-241661 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.