PHP parsing a cookie string with Chinese characters

Source: Internet
Author: User
Code

$str = ' Https%3a//www.baidu.com/baidu.php%3fsc.kkrk00ktl_d_fqaf1s6iplaa8aiw9h62ezakxetufjkwbwdnb5x_ Edfdf2pdphb78avlu5f5c5w8bey3k0phv2i6ioezcwvz-jy5bkts3bftcnqrqeo_8dtbkqy8bsntrciz0nb.dr_ Ab1gkl1rcnfhtndxao2ha91olaeuuub3dsrqi_ Nyqahfukl20.u1yk0zdqta9sfhcsmlnzuarznnojexc0ijdspzaq1q5n0a-v5hczpfkm5gk1tzwwm6kdphdbmy-bifkspyfqp0kwpyfqrjf0ugfqn1d1p-tzn Jn4g1dsnhixnh0krfkophys0zfy5hc40angujykpjc4g1d3nwfkg1cspjddg1dlnj0kg1ddph6sg1dkpj6s0afg5hcsp7tkphr0uynqn7tkg1d1rhtsp1dlp7 Tkn1blnwnvn1n0tgkgujys0z7wpyfqn0kzulw9u1ys0aqvujyknw0vuzgxnhmlnidbx-tkrjr4qywlg1d3p19nqhdsnjdsg1cvpwbvuzgxnwmvrn6vuzgxn1c Vpadbx-t1pjrsqywlg1nyrhmvn-t1rj0lqhcsnj7xn16zpaykg1n3rh6vuzgxpj0zpidbx-tynjmsqywlg1r1padbx-tln1fvuzc0mycqn7ts0anzu1ys0zks 5h00umus5h08nj0snj0snj00ugws5h00uawetjys0zfj5h00uanv5gkw0auy5h00ta6qn0ket1ys0afl5hds0a4y5h00tlcq0zwdt1ykph63pwtkphnspjm1r hcvp10lrfkzug7y5hdypw6vp1fdpwr1nwn0tv-b5yf3nyn1pwtsnj0sn1k9pjc0mlpv5hf4nh7awwk7pd77whf1n100mynqnfksuwyz0z7vijys0z7vt1ys0z Gy5h00uypxumfeuhysg1kxn7ts0awypyfqp0k9tlkwm1ys0znsPy4wm1ys0z7vuwys0apzm1ykpwryns%26us%3d0.0.0.0.0.0.7%26ck%3d7413.3.96.419.178.646.280.104%26shh%3dwww.baidu.com %26us%3d1.0.1.0.1.309.0%26ie%3dutf-8%26f%3d8%26tn%3dbaidu%26wd%3dphp%2520curl%2520%25e8%25af%25a6%25e8%25a7% 25a3%26oq%3dphp%2520curl%2520%25e8%25af%25a6%25e8%25a7%25a3%26rqlang%3dcn%26inputt%3d4358%26pn%3d20 '; $arr = Explode ('; ', Rawurldecode (iconv (' GBK ', ' UTF-8 ', UrlDecode ($STR))));p Rint_r ($arr);

The above describes the PHP parsing with Chinese characters in the cookie string, including the content, I hope the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.