1、打印数组:var_dump(数组名)
2、乱码问题:iconv("utf-8", "gbk", $_GET['name']);
3、执行sql语句:$rs = mysql_query("select * from phpyun_member")
4、统计数据条数:mysql_num_rows($rs)
5、获取刚插入数据的id:mysql_insert_id()
6、执行sql语句错误:mysql_error()
7、时间或字符串转成时间戳:
strtotime():将任何英文文本的日期时间描述解析为时间戳。
mktime():从日期取得时间戳。
8、新建log.txt,写入数据
$myfile = fopen("log.txt", "w");
fwrite($myfile,"dddddddddddd");
9、截取字符串最后一个字符:$jsons=substr($jsons,0,-1);