PHP accepts request. Sometimes we work with string that should clean. Novice coder often having trouble with it. think you have got a string like that.
Use
Adaptasi%20morfologi%20adalah%20penyesuaian%2E%2E%2E%0D%0A%0D%0A=&onLoad=%5Btype%20Function%5D
(?) Do you need to get a clean output like that:
Adaptasi morfologi adalah penyesuaian... =&onLoad=[type Function]
[Solution]
Use urldecode() function:
function:
<?PHP $string = "Adaptasi%20morfologi%20adalah%20penyesuaian%2E%2E%2E%0D%0A%0D%0A=&onLoad=%5Btype%20Function%5D"; //$string = $_GET['variable']; $rString = urldecode($string); echo $rString;
PHP Remove % from string in URL
By Game Changer →
Saturday, December 5, 2015