编辑器真是难用的要命,输入中文,老出现这种现象!!!!!!
$link = mysql_connect($host,$user,$pass) or die('shujuku数据库lianjie数据库连接shibai');
$link = mysql_connect($host,$user,$pass) or die('shujuku数据库lianjie数据库连接shibai');
2016-11-14
之前不是很懂,看了这个,一次写成功
function geterr($num)
{
if($num < 2){
throw new Exception('数字必须大于等于2');
}
}
try{
geterr(1);
}catch(Exception $e){
echo $e->getMessage();
}
function geterr($num)
{
if($num < 2){
throw new Exception('数字必须大于等于2');
}
}
try{
geterr(1);
}catch(Exception $e){
echo $e->getMessage();
}
2016-11-14
$jb = fopen($filename,'rb');
while(!feof($jb)){
echo fread($jb,4096);
}
fclose($jb);
while(!feof($jb)){
echo fread($jb,4096);
}
fclose($jb);
2016-11-13
$newstr = preg_replace('/(\w+\.\w+)/','<em>$1</em>',$str);
print_r($newstr);
print_r($newstr);
2016-11-13
preg_match('/(\w+@\w+\.\w+$)/',$subject,$matches);
print_r($matches[1]);
print_r($matches[1]);
2016-11-13
public function __call($name,$args){
if($name == 'speedDown'){
$this->speed -= 10;
}
}
if($name == 'speedDown'){
$this->speed -= 10;
}
}
2016-11-13
$fruit=array("苹果","香蕉","菠萝");
print_r($fruit[0]);
print_r($fruit[0]);
2016-11-13