You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
519 B
39 lines
519 B
<?php
|
|
namespace A{
|
|
|
|
$num=1;
|
|
|
|
function fnA(){
|
|
echo __FUNCTION__.PHP_EOL;
|
|
}
|
|
|
|
const constA="HELLO";
|
|
|
|
class ClassA{
|
|
public $num=2;
|
|
public function fnA()
|
|
{
|
|
echo __FUNCTION__.PHP_EOL;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace A\B{
|
|
$num=1;
|
|
|
|
function fnA(){
|
|
echo __FUNCTION__.PHP_EOL;
|
|
}
|
|
|
|
const constA="HELLO";
|
|
|
|
class ClassA{
|
|
public $num=2;
|
|
public function fnA()
|
|
{
|
|
echo __FUNCTION__.PHP_EOL;
|
|
}
|
|
}
|
|
}
|
|
|
|
?>
|