Passing & in query string

前端 未结 4 1321
误落风尘
误落风尘 2021-01-21 08:59

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         


        
4条回答
  •  野性不改
    2021-01-21 09:15

    & is a special HTML characters, you need to convert it to &.

    Try this:

    $abc = "A & B";
    
    

提交回复
热议问题