<?php require __DIR__ . "/src/hello.php"; use Com\Iesebre\Dam2\rogermelich\helloworldComposer\hello; /** * Created by PhpStorm. * User: roger * Date: 6/10/15 * Time: 19:33 */ $greatings = new Hello(); $greatings->sayHello();
<?php /** * Created by PhpStorm. * User: jim * Date: 2015/11/5 * Time: 22:54 */ require_once 'hello1.php'; $h = new Hello(); $h->sayHello(); $d = new Desktop(); $d->work();
<?php require_once "lib/Core.php"; require_once "obj/Hello.php"; // インスタンス生成 $obj = new Hello(); // Hello World!! $obj->sayHello();
<?php //require "Hello.php"; require __DIR__ . "/Hello.php"; $greetings = new Hello(); $greetings->sayHello();