$res = mysql_query('select * from user limit 1',mysql_connect('127.0.1', 'code1', ''));
2017-03-25
最赞回答 / qq_許沵d荖天荒_0
$this->speed=$this->speed+10;可以这样写,就是说$this->speed这个整体是一个变量,大白话可以理解为就这个方法里边的那个speed
2017-03-24
public function speedUp() {
$this->speed += 10;
}
$this->speed += 10;
}
2017-03-24
$replace=str_replace('Chian','China',$str,$count)
echo $replace;
echo $replace;
2017-03-24
$str = array(
"网络"=>array("php","C#","vb"),
"历史"=>array("1"=>"春秋",2=>"战国",3=>"左传"),
"文学"=>array("那些",3=>"狼","鬼"));
echo $str["历史"]["2"];
echo "\n";
echo $str["文学"]["3"];
printf_r($str);
"网络"=>array("php","C#","vb"),
"历史"=>array("1"=>"春秋",2=>"战国",3=>"左传"),
"文学"=>array("那些",3=>"狼","鬼"));
echo $str["历史"]["2"];
echo "\n";
echo $str["文学"]["3"];
printf_r($str);
2017-03-24