http://blog.csdn.net/think2me/article/details/43114963这篇文章写得不错,通俗易懂。
namespace foo;
class test{}
$test = new foo est();