代码拉取完成,页面将自动刷新
<?php
$con = mysqli_connect('localhost','root','root','demo','3306');
if(!$con){
die('连接失败:'.mysqli_error($con));
}
mysqli_query($con,'set names utf8');
mysqli_query($con,'SET AUTOCOMMIT=0');
mysqli_begin_transaction($con);
if(!mysqli_query($con,"insert into api_list(name,ver_type,serv_name,is_verify,is_stop,remark,is_delete) values('a','none','user_serv',0,0,'55',0)")){
mysqli_query($con,'ROLLBACK');
}
if(!mysqli_query($con,"insert into api_list(name,ver_type,serv_name,is_verify,is_stop,remark,is_delete) values('b','none','user_serv',0,0,'55',0)")){
mysqli_query($con,'ROLLBACK');
}
mysqli_commit($con);
mysqli_close($con);
$res = [];
$arr = [0,1,2,3,4,5,6,8];
foreach ($arr as $v){
$res[] = $v;
}
var_dump($res);
var_dump(888888);
for ($i=0;$i<10;$i++){
if(count($arr)<=$i) {
break;
}else{
var_dump($arr[$i]);
}
}
echo 454;
$arr1 = [5,8,54,2,3,6,4,1,5,2,6,9,8,12,5];
$tem = null;
for ($i=0;$i<count($arr1); $i++){
for ($j=0;$j<$i;$j++){
if($arr1[$i]>$arr1[$j]){
$tem = $arr1[$i];
$arr1[$i] = $arr1[$j];
$arr1[$j] = $tem;
}
}
}
var_dump($arr1);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。