排序
trim() expects parameter 1 to be string, int given
trim() expects parameter 1 to be string, int given主要是trim缺少参数注:参数必须是字符串(整型也会报错)
PHP实现跨域的办法
在PHP代码里面前面加上// 指定允许其他域名访问 header('Access-Control-Allow-Origin:*'); // 响应类型 header('Access-Control-Allow-Methods:POST'); // 响...
PHP题库批量入库处理代码
单选题入库$file = fopen('./shiti.txt', 'r'); $contentArr=array(); $i=0; //输出文本中所有的行,直到文件结束为止。 while(! feof($file)) { $...
