How can I prevent php from automatically transferring & times to the API of the other party? a & timestamp value needs to be sent. as a result, PHP directly converts & timestamp to × tamp, which is a headache.
Reply to discussion (solution)
Impossible!
Paste your sample code
I have encountered this problem several times.
When the browser parses html, it will display the string '×' as the symbol' ×'. when you view the source code of the webpage, you will find that the string is not converted into '×', but it is displayed on the front end'
// Parameter list $ signstrarr = array (); $ signstrarr ['app _ key'] = $ this-> app_key; $ signstrarr ['format'] = $ this-> format; $ signstrarr ['method'] = $ this-> method; $ signstrarr ['card _ id'] = $ card_id; $ signstrarr ['password'] = $ password; // $ signstrarr ['Sign _ method'] = $ this-> sign_method; $ signstrarr ['timestamp'] = $ this-> timestamp; $ signstrarr ['V'] = $ this-> v; $ signstrarr ['Sign _ v'] = $ this-> sign_v; ksort ($ signstrarr ); // sort the buttons in ascending order ($ signstrarr as $ key => $ value) {$ signstr. = $ key. $ value; $ query. = $ key. '= '. $ value. '&'; echo "&". $ key."
"; // Here the output is XX tamp}
The problem is that he switched the source code of the web page
sign_v=1×tamp=20120327105202
This is what you see in the address bar of the browser. what actually transmitted is not
Don't bother, as long as the source code is normal, I just read it. the Source Code hasn't changed here. what about the source code change?
It did not change, haha.
Change & to & remember extra points