PHP equivalent for javascript escape/unescape -


Assume I have a string: something

when I I get it in JS: <73% 6F% 6D% 65% 74% 68% 69% 6E% 67

That's why I get this code by js. Can decode it in:

  document.write (unescape ('% 73% 6F% 6D% 65% 74% 68% 69% 6 e% 67'));   

I need the escape function in PHP which will do the same ( some encoding them: % 73% 6F% 6D% 65% 74% 68% 69% 6 e% 67 )

How to do this?

PHP:

  crudelecode ( "Your Funty String");    

JS:

decodericompment ('% 20funky% 20string'); Do not use

escape as it is being disliked.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -