PHP-Codeigniter:实习笔记2

1.刚接触一个陌生系统的时候里面会有很多函数,不知道在哪儿定义的,就可以用以下这个“反射”来查询xxx函数所在文件的路径及行数
  $obj = new ReflectionFunction("xxx");
  $file = $obj->getFileName();
  $line = $obj->getStartLine();

2.服务器连接软件:winscp

3.sql语句 in:

  我们都知道用=来设定判断条件,比如:select *from db where name='admin'

  in 的作用类似于=,可以一次设置多条件,如:select *from db where name in (admin,shabi)

4.where 1<>1,引申出where1=1

  具体说明:http://m.blog.csdn.net/blog/z_play_du/7239326

  很清楚,很有用~

原文地址:https://www.cnblogs.com/phpfreshman/p/3361504.html