相关文章
PHP关于htmlspecialchars、strip_tags、addslashes的解释
PHP的htmlspecialchars、strip_tags、addslashes是网页程序开发中常见的函数,今天就来详细讲述这些函数的用法: 1.函数strip_tags:去掉 HT...
PHP中其实也可以用方法链
简单示意一下: 复制代码 代码如下: <?php class test { private $_name = ''; public function setName($name)...
探讨php中header的用法详解
header() is used to send raw HTTP headers. See the HTTP/1.1 specification for more info...
PHP 页面编码声明方法详解(header或meta)
php的header来定义一个php页面为utf编码或GBK编码 php页面为utf编码 header("Content-type: text/html; charset=utf-8")...
PHP里的中文变量说明
PHP的一个有效的变量名由字母或者下划线开头,后面跟上任意数量的字母,数字,或者下划线。按照正常的正则表达式,它将被表述为:'[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\...


