うーんここらへんはphp独自か
クラスプロパティの追加
class Sample { public static count = 0; private number; public function __construct() { $this->number = 10; } }
クラスプロパティの使用方法
echo Sample::$count;
うーんここらへんはphp独自か
class Sample { public static count = 0; private number; public function __construct() { $this->number = 10; } }
echo Sample::$count;