urlencode doesn't work in PHP (localhost) -


So I've worked in a project that I want to encode my URL For example, in my URL I have:

  $ url = 'http://www.test.com/?sms=+212&text=bla bla' urlencode ($ url) ; $ Url = urlencode ($ url);  

In addition I tried the rawurlencode ($ url); and I got the same url without changes !!

Therefore, if anyone has any ideas then I would appreciate it :)

  $ url = "http://www.test.com/?sms=+212&text=bla bla"; Echo $ url = urlencode ($ url);  

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -