开发者

How to use urlencode to handle two question marks in url in php

开发者 https://www.devze.com 2022-12-12 07:56 出处:网络
I have tried to understand and use urlencode, but the problem can\'t be solved. The code is: <?php print \'index.php/?page=search?query=\'.quote_replace(addmarks($search_results[\'did_you_mean\'])

I have tried to understand and use urlencode, but the problem can't be solved.

The code is:

<?php print 'index.php/?page=search?query='.quote_replace(addmarks($search_results['did_you_mean'])).'&s开发者_JS百科earch=1'?>


use urlencode

edit

try rawurlencode

0

精彩评论

暂无评论...
验证码 换一张
取 消