From 85ee781d42e980e46b4e8d4483f35f3e46441e43 Mon Sep 17 00:00:00 2001 From: m-takatsuki <26-m-takatsuki-webstar@it-college.co.jp> Date: Fri, 9 Oct 2026 14:53:26 +0900 Subject: [PATCH] =?UTF-8?q?Ex.8=20=E5=AE=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Question08-Function/Ex01.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Question08-Function/Ex01.php b/Question08-Function/Ex01.php index 7e2d227..8b69a28 100644 --- a/Question08-Function/Ex01.php +++ b/Question08-Function/Ex01.php @@ -7,10 +7,14 @@ * * 100を返すメソッド */ -function number() +function number($receive) { - return 100; + $msg = 100; + return $msg; } // TODO: 変数receiveを宣言し、関数numberを実行した結果を代入してください // TODO: 変数receiveを出力してください + +$result = number ("100"); +echo $result ; \ No newline at end of file