Implementation of escape decoding function in JS language under PHP

time:11-04-06 forum:PHP tools and code
 
[code]http://db.gamersky.com/Soft/ShowSoftDown.asp? UrlID=1&SoftID=17161[/code]
encrypted string

GB2312 Code:
[code]
.lt;? Php
function unescape. P; #d; $str, $r);
$ar = $r.#91; 0.#93;
foreach; $k.#93 = iconv (.Quot; UCS-2.quot;.Quot; GBK.quot; pack (.Quot; H4.quot; substr)). R / > >
?.gt;

UTF8 coding:
.lt; php
function unescape ($str). $val.Lt; 0x7F) $ret. = Chr ($val);
else if ($val.Lt; 0x800). {
$ret. = URLDecode (substr ($str, $i, 3));
$i = 2;
>
else $ret. =

prev:PHP decryption of Unicode coded characte... next:The Shang Dynasty site of Daxinzhuang in...
post comment
Notice



approved   Visiting group of pregnant women wit...   She was 10 years old as a babysitter...   Ji'nan "shit mountain" should be sho...   The first competition school in Chin...   These 9 kinds of scary symptoms foun...
rand   PHP string intercepting function   The interrotation of time stamp func...   PHP code for different cities from I...   Website 301 turn to Encyclopedia   Super PHP rapid programmer
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com