summaryrefslogtreecommitdiff
path: root/Examples/ConstStaticProp/test.php
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/ConstStaticProp/test.php')
-rw-r--r--Examples/ConstStaticProp/test.php15
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