Ex.01 完了
This commit is contained in:
@@ -1,11 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* [Ex01 外部ファイル読み込み]
|
||||
*
|
||||
* TODO:
|
||||
* 1. __DIR__を使い、Util/Hello.phpをrequire_onceで読み込む
|
||||
* 2. 読み込んだHello.php内の getMessage() を呼び出し、
|
||||
* その戻り値を出力してください。
|
||||
*
|
||||
*/
|
||||
///* [Ex01 外部ファイ読み込み]
|
||||
|
||||
|
||||
|
||||
// TODO:
|
||||
// 1. __DIR__を使い、Util/Hello.phpをrequire_onceで読み込む
|
||||
//2. 読み込んだHello.php内の getMessage() を呼び出し、
|
||||
// その戻り値を出力してください。
|
||||
|
||||
|
||||
require_once __DIR__ . 'util/hello.php';
|
||||
|
||||
$result = getMessage();
|
||||
|
||||
return $result;
|
||||
?>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user