Copy CodeThe code is as follows:
namespace Bak\ba\ba;
Function Bab () {
echo "BI";
}
namespace KKK;
function K1 () {
echo "K1";
}
\bak\ba\ba\bab ();//Use a different namespace under the KKK namespace, note the previous \
Use \bak\ba\ba as b;//is still under the KKK namespace, but the following methods are correct when using aliases
#use Bak\ba\ba as b;//front can not use the \ Number
B\bab ()///use aliases under the namespace should not be preceded by the \ Number
K1 ();//Call the function without an error stating that use does not affect the current namespace
http://www.bkjia.com/PHPjc/322793.html www.bkjia.com true http://www.bkjia.com/PHPjc/322793.html techarticle Copy the code as follows: namespace Bak\ba\ba; function Bab () {echo "Bi"} namespace KKK; function K1 () {echo "K1";} \bak\ba\ba\bab ()///use another named Null under KKK's namespace ...