05 2016 档案

摘要:编码转换string mb_convert_encoding ( string $str , string $to_encoding [, mixed $from_encoding ] )iconv(); 字符串处理array explode(".", "fff.ff.f") 按指定字符切割stri 阅读全文
posted @ 2016-05-16 11:28 涂先庆 阅读(305) 评论(0) 推荐(0)
摘要:Int imagecreate(intx,int y)>>建一个长为X 宽为Y的长方形;Int imagecolorallocate($shang ,255,255,255) 填充颜色;Int imagefill($shang,0,0,black)从哪个位置填充颜色;Int imagestring( 阅读全文
posted @ 2016-05-16 11:22 涂先庆 阅读(113) 评论(0) 推荐(0)
摘要:isset() //变量是否存在 boolean empty()// 检查变量是否存在,并判断值是否为非空或非 void unset() //销毁变量 method_exists($obj, $method) //判断对象的方法是否可用 file_exists($file) //判断文件是否存在 g 阅读全文
posted @ 2016-05-08 19:54 涂先庆 阅读(87) 评论(0) 推荐(0)
摘要:如何执行sql语句: 插入 $sql="insert into test(id,name,grade) values ('1','q','80'); mysql_query("set names 'GBK'");//解决中文乱码 mysql_query($sql,$conn) or die (mys 阅读全文
posted @ 2016-05-08 19:45 涂先庆 阅读(92) 评论(0) 推荐(0)
摘要:PHP的几个特殊符号意义。 $ 变量 & 变量的地址(加在变量前) @ 不显示错误信息(加在变量前) -> 类的方法或者属性=> 数组的元素值?: 三元运算子1、PHP中变量都以$开头,如$a,$ab等都是变量,而函数名和常量则都是直接使用字符串/下划线开头。2、定义常量使用define(name, 阅读全文
posted @ 2016-05-02 23:44 涂先庆 阅读(141) 评论(0) 推荐(0)
摘要:isset() 变量是否存在boolean empty() 检查变量是否存在,并判断值是否为非空或非0void unset() 销毁变量header('Content-Type: text/html; charset=utf-8');method_exists($obj, $method) 判断对象 阅读全文
posted @ 2016-05-02 23:42 涂先庆 阅读(155) 评论(0) 推荐(0)