<?php
/**
* @ignore
* @package ignore
*/
import TestNamespace;
echo TestClass::$test;
echo 1/0;
$testFunction = 'testStatic';
TestClass::
$testFunction('Hi World!');
trigger_error('Ouch');
TestClass::testStatic('Hi World!');
$testClass = 'TestClass';
$test = new $testClass('Hi World!');
var_dump($test instanceof TestClass);
$test = new TestClass('Hi World!');
function testTypeHinting(TestInterface $test, TestInterface $dummy, $dummy2 = TestClass::TEST_CONSTANT) {
$test->test();
}
testTypeHinting($test, $test);
echo TestClass::TEST_CONSTANT;
?>
|