0
我的問題很簡單。 我不知道如果在PHP中,即使他們不使用緩慢的PHP聲明名稱空間。 例如:PHP命名空間的使用
<? php
use \ Library \ class1;
use \ Library \ class2;
use \ Library \ class3;
$ c1 = new class1;
$ c2 = new class3;
/* More code */
?>
那麼,這個不必聲明命名空間的Class2和不使用,減緩PHP的excecution?
我沒有對它進行基準測試,但我會想象這是非常邊際的金額取決於別名(使用'use')。不值得擔心。 – naththedeveloper
太棒了! thx :) –