回答這個(gè)問題:
if(!$session->isActive){
$session->open();
}
------
$session->open(); 里面有做
if ($this->getIsActive()) {
return;
}
的判斷,所有在外部再判斷一次是沒必要的
if(!$session->isActive){
$session->open();
}
------
$session->open(); 里面有做
if ($this->getIsActive()) {
return;
}
的判斷,所有在外部再判斷一次是沒必要的
2017-07-12
use \Apple as CApple;
$c_app = new CApple();
$c_app->get_info();
也是可以的,老師講的非常詳細(xì),給個(gè)贊?。。。?!
$c_app = new CApple();
$c_app->get_info();
也是可以的,老師講的非常詳細(xì),給個(gè)贊?。。。?!