string this-> URLEncode(string )

(Caronte Pcode version 2.0)

Description

string this->URLEncode( string );

Returns a string in which all non-alphanumeric characters except have been replaced with a percent (%) sign followed by two hex digits and spaces encoded a(%20)

Example.

Source:

CS_ANTISPAM_SCRIPT this = new CS_ANTISPAM_SCRIPT($_this);

this->Print(this->URLEncode("http://www.caronteantispam.it/index.php?title=Antispam Server"));




Out:

http%3A%2F%2Fwww%2Ecaronteantispam%2Eit%2Findex%2Ephp%3Ftitle%3DAntispam%20Server