mysql批量添加数据
$conn=new sqlhelper;
for ($i = 0; $i <1000 ; $i++) {
$sql="insert into system_user(user_shenfen_id,user_email,user_passwod) values (concat($i,'3336'),'001@163.com','8844')";
$conn->run_done($sql);
}
$conn=new sqlhelper;
for ($i = 0; $i <1000 ; $i++) {
$sql="insert into system_user(user_shenfen_id,user_email,user_passwod) values (concat($i,'3336'),'001@163.com','8844')";
$conn->run_done($sql);
}
生成json<?php $arr=array(); //定义空数组 $one="111"; $two="222"; arra...
$arr[] //用于收集子数组;serialize($arr)&nb...
echo date('Y-m-d',$date); PHP里面将date型数据输出: echo $date; PHP里面将dat...
nginx 配置location / {rewrite ^(.*)$ /index.php?s=/$1 last;}code rotoo.top.7z...
echo json_encode($arr,JSON_UNESCAPED_UNICODE); //转换成json,并让中文不变成乱码JSON_UNESCAPED_UNICODE 这...
<?php function xml_entities($string) { //过滤emod $ts_zifu= json_encode($st...