php-src/Zend/tests/ns_028.inc
Dmitry Stogov f32ffe9b43 Namespaces
2007-09-28 19:52:53 +00:00

16 lines
263 B
PHP
Executable File

<?php
namespace Foo;
class Foo {
function __construct() {
echo "Method - ".__CLASS__."::".__FUNCTION__."\n";
}
static function Bar() {
echo "Method - ".__CLASS__."::".__FUNCTION__."\n";
}
}
function Bar() {
echo "Func - ".__FUNCTION__."\n";
}