class MyClass { public static $myStaticVar = "Hello, World!"; }
echo MyClass::$myStaticVar;
class Math { public static function add($a, $b) { return $a + $b; } }
echo Math::add(5, 10);This will output: `15` The PHP static name is a part of the PHP core language, so it does not require any external package or library.