Then, extract the message to be exported from it. The code is as follows. The following code is offline and will not be disclosed online, it is a very simple php Tutorial:
The code is as follows: |
Copy code |
<? Php /* Convert hexadecimal encoding to Chinese characters */ Function hexDecode ($ s ){ Return preg_replace ('/(w {2})/E', "chr (hexdec (' \ 1')", $ s ); } /* Convert Chinese characters to hexadecimal encoding */ $ Str = "7B22636F6E74726F6C223A22343AE5AE8BE4 BD932C422C302C30222C22657874656E6469 6e666f223a22323031321333323731383 53335da-c307c7ee4b88de8a681e68993e985b1 E6B2B97E222C22657874656E6474 797065223A22222C2274 797065223a226e6fda-d616c6d7367 222c226d7415223a2261 646720227D "; www.111cn.net $ A = hexDecode ($ str); // call the anti-conversion function to convert the hexadecimal value Echo $ a; // output {"control": "4:, B, 20140327185359", "extendinfo": "| 0 | ~ Do not make soy sauce ~ "," Extendtype ":" "," type ":" normalmsg "," msg ":" adg "} $ A = json_decode ($ ); Echo ($ a-> msg); // Retrieve msg field information ?> |