The escape function converts a blank space into %20, same way it converts & to %26
Let us start with some examples
First let us create a string variable and then apply escape function and display it.
The output of the above code will be
As you can see the space in between words and other special chars are replaced by their hex values and now they can be transmitted over net.
Now let us try to get back the original string by using unescape function. We will add one more line to the above code.
The output of this is here ( only the last line ).
We got our original string.
This article is written by plus2net.com team.