Jump to content

urlencode not working the way i want it to :(


kevinkhan

Recommended Posts

i want to convert this string

 

string ="DJs in Cork, College Balls, UCC Medical Ball, Bands for College Balls";

 

to this

 

DJs%20in%20Cork%2C%20College%20Balls%2C%20UCC%20Medical%20Ball%2C%20Bands%20for%20College%20Balls

 

but when i apply the function

 

urlencode($string)

 

i am getting

DJs+in+Cork%2C+College+Balls%2C+UCC+Medical+Ball%2C+Bands+for+College+Balls

 

what could be the reason for this??

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.