Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove encoding using PHP

Tags:

php

encode

I have the following text:

We%27re%20proud%20to%20introduce%20the%20Amazing

I'd like to remove the encoding using PHP, but using html_entity_decode() does not work.

Any suggestions?

like image 514
kylex Avatar asked Mar 10 '10 16:03

kylex


1 Answers

echo urldecode('We%27re%20proud%20to%20introduce%20the%20Amazing');

This is an url_ecoded string. Use urldecode

like image 120
erenon Avatar answered Oct 12 '22 08:10

erenon