I want to pass \'&\' operator in query string. I tried to use urlencode and urldecode but its not working. I am doing this:
$abc=\"A & B\"; $abc2=urlenc
Try this:
$url = '?' . http_build_query(array( 'say' => 'A & B' )); // Then just: echo $_GET['say'];
Live example: http://codepad.viper-7.com/ibH79a?say=A+%26+B