Jump to content

[SOLVED] a space in a strinhg


map200uk

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.