2014年10月9日

Day4_代码重用与函数

摘要: 知识点速记:重用代码的方法:脚本包含require()、include(); 全局配置文件php.ini(auto_prepend_file/auto_append_file); 目录配置文件.htaccess(auto_prepend_file/auto_append_file)命名规范:函数名不... 阅读全文

posted @ 2014-10-09 18:23 alfalfa 阅读(212) 评论(1) 推荐(0)

Day3_字符串操作与正则表达式

摘要: 本节课的主要内容有:字符串的格式化、连接与分割、比较、匹配和替换、使用正则表达式字符串的格式化:去除空格:trim()使用html格式化:nl2br() 替换‘\n’为‘’ 打印格式化:printf()大小写:strtoupper() strtolower() ucfirst() ucwords(... 阅读全文

posted @ 2014-10-09 16:13 alfalfa 阅读(129) 评论(0) 推荐(0)

导航