PHP OOP - Statische Eigenschaften
<?php
class pi {
public static $value = 3.14159;
}
// Get static property
echo pi::$value;
?>
naly moslih
<?php
class pi {
public static $value = 3.14159;
}
// Get static property
echo pi::$value;
?>
<?php
class greeting {
public static function welcome() {
echo "Hello World!";
}
}
// Call static method
greeting