摘要:
<?php header("Content-Type:text/html;charset=utf-8"); function msubstr($str, $start = 0, $length, $lenth2, $suffix = true){ //$length 中文截取长度,$lenth2英文 阅读全文
摘要:
什么是BOM? 在UCS 编码中有一个叫做”ZERO WIDTH NO-BREAK SPACE”的字符,它的编码是FEFF。而FFFE在UCS中是不存在的字符,所以不应该出现在实际传输中。UCS规范建议我们在传输字节流前,先传输字符”ZERO WIDTH NO-BREAK SPACE”。这样如果接收 阅读全文
摘要:
1、HTML 5中验证码HTML代码如下: <div class="demo"> <h3>1、数字验证码</h3> <p>验证码:<input type="text" class="input" id="code_num" name="code_num" maxlength="4" /> <img 阅读全文
摘要:
<?php header("Content-Type:text/html;charset=utf-8"); function xml2array($filename){ $xml = @simplexml_load_file($filename); //返回数组 if(is_object($xml) 阅读全文
摘要:
导出excel属性设置 //Include class require_once('Classes/PHPExcel.php'); require_once('Classes/PHPExcel/Writer/Excel2007.php'); $objPHPExcel = new PHPExcel() 阅读全文