How to use urlencode to handle two question marks in url in php
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
精彩评论