PHP-Codeigniter:实习笔记2

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

2.服务器链接软件:winscp服务器

3.sql语句 in:函数

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

  in 的做用相似于=,能够一次设置多条件,如:select *from db where name in (admin,shabi)blog

4.where 1<>1,引伸出where1=1get

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

  很清楚,颇有用~软件

相关文章
相关标签/搜索