php禁止&not &curren转义

$PostUrl="amount=".$data['amount']."&appId=".$data['appId']."&callBackUrl=".$data['callBackUrl']."&channel=".$data['channel']. '&currency='.$data['currency']."&desc=".$data['desc']."&extra=".$data['extra']."&orderNo=".$data['orderNo']. "&orderTime=".$data['orderTime']."&subject=".$data['subject']."&toAccountType=".$data['orderTime'];

echo str_replace("&currency", "&ampcurrency", $PostUrl);echo "<pre>";

var_dump($PostUrl);die;
View Code

猜你喜欢

转载自www.cnblogs.com/cuizhenyu/p/10498694.html