Php cannot print strings normally. how can I solve this problem during development? I need to access a urlwww. ***. comapiabc? A123 & amp; b234 & amp; param2 but when I echo & nbsp; www. ***. comapiabc? A123 & amp; b234 & amp; param2; what is displayed in the browser is that ww php cannot print strings normally. how can this problem be solved?
During development, I need to access a url
Http: // www. ***. com/api/abc? A = 123 & B = 234 & param = 2
But when I echo 'http: // www. ***. com/api/abc? A = 123 & B = 234 & param = 2 ';
Http: // www. ***. com/api/abc? A = 123 & B = 234 (special character) m = 2
! --The forum with special characters is not allowed to be published. if you want to know what it is, print it yourself.
How to solve
PHP URL
Share:
------ Solution --------------------
Html escape,
Echo htmlspecialchars ('http: // www. ***. com/api/abc? A = 123 & B = 234 & param = 2 ');