Ex.01 完了

This commit is contained in:
2026-10-13 16:57:50 +09:00
parent 376c78cb38
commit d1a08dd5d5

View File

@@ -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 <?php
/** ///* [Ex01 外部ファイ読み込み]
* [Ex01 外部ファイル読み込み]
*
* TODO:
* 1. __DIR__を使い、Util/Hello.phpをrequire_onceで読み込む // TODO:
* 2. 読み込んだHello.php内の getMessage() を呼び出し、 // 1. __DIR__を使い、Util/Hello.phpをrequire_onceで読み込む
* その戻り値を出力してください。 //2. 読み込んだHello.php内の getMessage() を呼び出し、
* // その戻り値を出力してください。
*/
require_once __DIR__ . 'util/hello.php';
$result = getMessage();
return $result;
?>
</body>
</html>