/**
* 자바스크립트 escape 문자열 디코딩
*
* @param String escape 문자열
* @access public
* @return String unescape 문자열
*/
function JsUnescape($str){
return urldecode(preg_replace_callback('/%u([[:alnum:]]{4})/', 'JsUnescapeFunc', $str));
}
function JsUnescapeFunc($str){
return iconv('UTF-16LE', 'UHC', chr(hexdec(substr($str[1], 2, 2))).chr(hexdec(substr($str[1],0,2))));
}
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
echo JsUnescape("/Shop_Sub.html?cat=shoes&HighDispNo=001001019&brand=shoes_%uB514%uC824");
$time = getmicrotime() - $time_start;
print("<p>수행시간 ( $time 초)</p>");