<?php // クラス定義 class TestClass01{ function test01(){ echo "Test Method1"; } } // ()を指定してクラスにそのままアクセスする (new TestClass01)->test01();
>php -f sample01.php Test Method1 >