基础编程
2. [文件] getdata.php
3. [文件] getdata.php
4.
[文件]
index.php ~ 20KB
下载
(0)
[全屏预览]
5.
[文件]
index.php ~ 20KB
下载
(0)
[全屏预览]
6.
[文件]
getdata.php ~ 1KB
下载
(0)
跳至
[1]
[2]
[3]
[6]
[7]
[8]
[9]
[10]
[11] [全屏预览]
7.
[文件]
Connect.class.php ~ 531B
下载
(0)
跳至
[1]
[2]
[3]
[6]
[7]
[8]
[9]
[10]
[11] [全屏预览]
8.
[文件]
test.php ~ 1KB
下载
(0)
跳至
[1]
[2]
[3]
[6]
[7]
[8]
[9]
[10]
[11] [全屏预览]
9.
[文件]
test.php ~ 1KB
下载
(0)
跳至
[1]
[2]
[3]
[6]
[7]
[8]
[9]
[10]
[11] [全屏预览]
10.
[文件]
test.php ~ 1KB
下载
(0)
跳至
[1]
[2]
[3]
[6]
[7]
[8]
[9]
[10]
[11] [全屏预览]
11.
[文件]
test.php ~ 1KB
下载
(0)
跳至
[1]
[2]
[3]
[6]
[7]
[8]
[9]
[10]
[11] [全屏预览]
以上就是基础编程的内容,更多相关内容请关注PHP中文网(www.php.cn)!
con=mysql_connect(constant("SERVER"),constant("USERNAME"),constant("PASSWORD"));
if(!$this->con){
die('connet to mysql error'.mysql_error());
}
else{
mysql_select_db(constant("DATABASE"),$this->con);
}
}
function select($sql){
$result=mysql_query($sql,$this->con);
return $row=mysql_fetch_array($result);
}
function find($sql){
$result=mysql_query($sql,$this->con);
$row=mysql_fetch_assoc($result);
}
}
?>/n";
echo "counter1: " . $counter1() . "
/n";
echo "counter1: " . $counter1() . "
/n";
echo "counter1: " . $counter1() . "
/n";
echo "counter2: " . $counter2() . "
/n";
echo "counter2: " . $counter2() . "
/n";
echo "counter2: " . $counter2() . "
/n";
echo "counter2: " . $counter2() . "
/n";
var_dump(counter() instanceof Closure);
$str="
$arr=[];
var_dump(parse_str($str,$arr));
$find=['a','p','l'];
$replace=['apple','peer','line'];
var_dump(str_replace($find,$replace,'i like a'));
?>/n";
echo "counter1: " . $counter1() . "
/n";
echo "counter1: " . $counter1() . "
/n";
echo "counter1: " . $counter1() . "
/n";
echo "counter2: " . $counter2() . "
/n";
echo "counter2: " . $counter2() . "
/n";
echo "counter2: " . $counter2() . "
/n";
echo "counter2: " . $counter2() . "
/n";
var_dump(counter() instanceof Closure);
$str="
$arr=[];
var_dump(parse_str($str,$arr));
$find=['a','p','l'];
$replace=['apple','peer','line'];
var_dump(str_replace($find,$replace,'i like a'));
?>/n";
echo "counter1: " . $counter1() . "
/n";
echo "counter1: " . $counter1() . "
/n";
echo "counter1: " . $counter1() . "
/n";
echo "counter2: " . $counter2() . "
/n";
echo "counter2: " . $counter2() . "
/n";
echo "counter2: " . $counter2() . "
/n";
echo "counter2: " . $counter2() . "
/n";
var_dump(counter() instanceof Closure);
$str="
$arr=[];
var_dump(parse_str($str,$arr));
$find=['a','p','l'];
$replace=['apple','peer','line'];
var_dump(str_replace($find,$replace,'i like a'));
?>con=mysql_connect(constant("SERVER"),constant("USERNAME"),constant("PASSWORD"));
if(!$this->con){
die('connet to mysql error'.mysql_error());
}
else{
mysql_select_db(constant("DATABASE"),$this->con);
}
}
function select($sql){
$result=mysql_query($sql,$this->con);
return $row=mysql_fetch_array($result);
}
function find($sql){
$result=mysql_query($sql,$this->con);
$row=mysql_fetch_assoc($result);
}}
?>'jey',
// "sex"=>'male',
// ];
// curl_setopt($curl,CURLOPT_POSTFIELDS,$data);
// curl_setopt($curl,CURLOPT_HTTPHEADER,$header);
// $data=curl_exec($curl);
// curl_close($curl);
// echo ($data);
//
// $str="这是一个中文";
// var_dump(json_encode($str,JSON_UNESCAPED_UNICODE));
// $data='[{"Name":"a1","Number":"123","Contno":"000","QQNo":""},
{"Name":"a1","Number":"123","Contno":"000","QQNo":""},
{"Name":"a1","Number":"123","Contno":"000","QQNo":""}]';
// $data=json_decode($data);
// var_dump($data);
// echo <<date("Y-m-d",strtotime($first)),
"martin"=>date("Y-m-d",strtotime('+1 day')),
);
$father="mother";
$mother="son";
echo $$father;
var_dump( $dates);
}
getDetailDate($year);
?> 'jey',
// "sex"=>'male',
// ];
// curl_setopt($curl,CURLOPT_POSTFIELDS,$data);
// curl_setopt($curl,CURLOPT_HTTPHEADER,$header);
// $data=curl_exec($curl);
// curl_close($curl);
// echo ($data);
//
// $str="这是一个中文";
// var_dump(json_encode($str,JSON_UNESCAPED_UNICODE));
// $data='[{"Name":"a1","Number":"123","Contno":"000","QQNo":""},
{"Name":"a1","Number":"123","Contno":"000","QQNo":""},
{"Name":"a1","Number":"123","Contno":"000","QQNo":""}]';
// $data=json_decode($data);
// var_dump($data);
// echo <<date("Y-m-d",strtotime($first)),
"martin"=>date("Y-m-d",strtotime('+1 day')),
);
$father="mother";
$mother="son";
echo $$father;
var_dump( $dates);
}
getDetailDate($year);
?> 'jey',
// "sex"=>'male',
// ];
// curl_setopt($curl,CURLOPT_POSTFIELDS,$data);
// curl_setopt($curl,CURLOPT_HTTPHEADER,$header);
// $data=curl_exec($curl);
// curl_close($curl);
// echo ($data);
//
// $str="这是一个中文";
// var_dump(json_encode($str,JSON_UNESCAPED_UNICODE));
// $data='[{"Name":"a1","Number":"123","Contno":"000","QQNo":""},
{"Name":"a1","Number":"123","Contno":"000","QQNo":""},
{"Name":"a1","Number":"123","Contno":"000","QQNo":""}]';
// $data=json_decode($data);
// var_dump($data);
// echo <<date("Y-m-d",strtotime($first)),
"martin"=>date("Y-m-d",strtotime('+1 day')),
);
$father="mother";
$mother="son";
echo $$father;
var_dump( $dates);
}
getDetailDate($year);
?> 'jey',
// "sex"=>'male',
// ];
// curl_setopt($curl,CURLOPT_POSTFIELDS,$data);
// curl_setopt($curl,CURLOPT_HTTPHEADER,$header);
// $data=curl_exec($curl);
// curl_close($curl);
// echo ($data);
//
// $str="这是一个中文";
// var_dump(json_encode($str,JSON_UNESCAPED_UNICODE));
// $data='[{"Name":"a1","Number":"123","Contno":"000","QQNo":""},
{"Name":"a1","Number":"123","Contno":"000","QQNo":""},
{"Name":"a1","Number":"123","Contno":"000","QQNo":""}]';
// $data=json_decode($data);
// var_dump($data);
// echo <<date("Y-m-d",strtotime($first)),
"martin"=>date("Y-m-d",strtotime('+1 day')),
);
$father="mother";
$mother="son";
echo $$father;
var_dump( $dates);
}
getDetailDate($year);
?> 