diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2014-02-14 16:30:23 +0100 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2014-02-14 16:30:23 +0100 |
commit | 06aa5fd5afaba69544b93654fb0a4f9c2651306e (patch) | |
tree | 99cd2ee120786a84531b450f9ef64e2319ef5192 /Examples/ConstStaticProp/test.php | |
parent | 5c23fee5ce58ae66a70f3bd19a1dc2dff7220f13 (diff) |
Merged pull request #14
Diffstat (limited to 'Examples/ConstStaticProp/test.php')
-rw-r--r-- | Examples/ConstStaticProp/test.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Examples/ConstStaticProp/test.php b/Examples/ConstStaticProp/test.php new file mode 100644 index 0000000..5489461 --- /dev/null +++ b/Examples/ConstStaticProp/test.php @@ -0,0 +1,15 @@ +<?php + + var_dump(MyTestClass::version); // print: string(11) "v0.01-alpha" + + var_dump(MyTestClass::PI); // print: float(3.14159265) + + var_dump(MyTestClass::IMISNULL); // print: NULL + + var_dump(MyTestClass::$exp); // print: float(2.71828182846) + + /** + * Fatal error! + * Private PHP constructor. You can't instance object of MyTestClass. + */ + //$mytest = new MyTestClass();
\ No newline at end of file |