PHP实现ASCII码与字符串相互转换的方法
代码: <?php class Ascii { private $prefix = “&#”; public function str2ascii($str) { $len = strlen($str); $i = 0; $iscii = ”; while ($i < $len) { $ud = 0; if (ord($str{$i}) >= 0 &&
阅读更多 »
代码: <?php class Ascii { private $prefix = “&#”; public function str2ascii($str) { $len = strlen($str); $i = 0; $iscii = ”; while ($i < $len) { $ud = 0; if (ord($str{$i}) >= 0 &&
阅读更多 »