First Draft
First Draft of the Example Files
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
$temp = new Test();
|
||||
|
||||
echo "Test A: " . Test::$static_property . "<br>";
|
||||
echo "Test B: " . $temp->get_sp() . "<br>";
|
||||
echo "Test C: " . $temp->static_property . "<br>";
|
||||
|
||||
class Test
|
||||
{
|
||||
static $static_property = "I'm static";
|
||||
function get_sp()
|
||||
|
||||
{
|
||||
return self::$static_property;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user