Home > Backend Development > PHP Tutorial > 请大哥们帮小弟我把这小段代码改成ASP的吧,谢谢

请大哥们帮小弟我把这小段代码改成ASP的吧,谢谢

WBOY
Release: 2016-06-13 12:32:52
Original
819 people have browsed it

请大哥们帮我把这小段代码改成ASP的吧,多谢

<br />
function flashdata_decode($s) {<br />
    		$r = '';<br />
    		$l = strlen($s);<br />
    		for($i=0; $i<$l; $i=$i+2) {<br />
    			$k1 = ord($s[$i]) - 48;<br />
    			$k1 -= $k1 > 9 ? 7 : 0;<br />
    			$k2 = ord($s[$i+1]) - 48;<br />
    			$k2 -= $k2 > 9 ? 7 : 0;<br />
    			$r .= chr($k1 << 4 | $k2);<br />
    		}<br />
    		return $r;<br />
    	}<br />
Copy after login

对PHP不熟,搞不来,多谢啊
主要是  $r .= chr($k1 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template