Hi,
I dont know, what mistake i made in my code.
[B]test1.php[/B]
<?php
namespace MyNameSpace;
class A
{
public function B()
{
echo "san";
}
}
?>
[B]test2.php[/B]
<?php
include('test1.php');
$test=new MyNameSpace::A();
$test->B();
?>
http://localhost/test2.php
Error:
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in C:\xampp\htdocs\MyNameSpace\test2.php on line 3