class BigCar extends Car {
public static function start() {
parent::speedUp();
}
}
寫錯了,。。。。。
class BigCar extends Car {
public static function start() {
return parent::speedUp();
}
}
需要加個return,希望作者注意一下。。。。
public static function start() {
parent::speedUp();
}
}
寫錯了,。。。。。
class BigCar extends Car {
public static function start() {
return parent::speedUp();
}
}
需要加個return,希望作者注意一下。。。。
2019-03-05
<?php
$subject = "my email is spark@imooc.com";
$pattern = '/([\w]*)@+([\w\.]*)/';
preg_match($pattern,$subject,$matches);
// print_r($matches);
//在這里補(bǔ)充代碼,實(shí)現(xiàn)正則匹配,并輸出郵箱地址
echo $matches[0];
$subject = "my email is spark@imooc.com";
$pattern = '/([\w]*)@+([\w\.]*)/';
preg_match($pattern,$subject,$matches);
// print_r($matches);
//在這里補(bǔ)充代碼,實(shí)現(xiàn)正則匹配,并輸出郵箱地址
echo $matches[0];
2018-12-21