PHP5静的メソッドに関して
前に書いたソースコードをPHP5らしい書き方で直していたのですが、あれと思うことが 静的メソッドを書くときに「static」とつけるのですが、若干微妙なのが <?php class hoge { public static function test(){ print "testメソッドを表示"; } } ?> これが…
1 件の記事
前に書いたソースコードをPHP5らしい書き方で直していたのですが、あれと思うことが 静的メソッドを書くときに「static」とつけるのですが、若干微妙なのが <?php class hoge { public static function test(){ print "testメソッドを表示"; } } ?> これが…
Photo: Jaz. Mine / Unsplash LicensePhoto: Se. Tsuchiya / Unsplash LicensePhoto: Sergio / Unsplash LicensePhoto: Robert Bant / Unsplash LicensePhoto: Zhi Xuan Hew / Unsplash License