• PHP Ascii编码转换

    /** * ascii 转换 * @param $c * @param string $prefix * @return string */ function ascii_encode($c, $prefix="&#") { $len = strlen($c); $a = 0; while ($a < $len) { $ud = 0; if (ord($c{$a}) >= 0 && ord($c{…

    伴侣哟 2018-09-12 Learn 904