2014年6月27日

使用git提交github代码

摘要: 新的项目的提交touch README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/sailrancho/test.gitgit push -u ori... 阅读全文

posted @ 2014-06-27 14:54 出发的兰彻 阅读(194) 评论(0) 推荐(0) 编辑

PHP 文件迭代器

摘要: 使用了SPL的 迭代器, 可以直接对打开的文件进行foreach读取, 类的构造如下class fileIterator implements Iterator{ private $fp; private $line_num; private $line; public... 阅读全文

posted @ 2014-06-27 12:07 出发的兰彻 阅读(532) 评论(0) 推荐(0) 编辑

导航