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