From cfe2332a7634832bfa824225d46fad9a0b62d855 Mon Sep 17 00:00:00 2001 From: m-takatsuki <26-m-takatsuki-webstar@it-college.co.jp> Date: Tue, 13 Oct 2026 13:06:15 +0900 Subject: [PATCH] =?UTF-8?q?Ex.04=20=E5=AE=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Question08-Function/Ex04.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Question08-Function/Ex04.php b/Question08-Function/Ex04.php index 40099aa..5342da8 100644 --- a/Question08-Function/Ex04.php +++ b/Question08-Function/Ex04.php @@ -7,7 +7,16 @@ * * 引数で渡された値の前後に 「 」 を付与して出力する関数("「"と引数と"」"の連結) */ +function convertMessage($str) +{ +$result = "「". $str. "」" ; + + return $result; +} $message = 'Hello, world!'; // TODO: 関数convertMessageを(変数messageを引数に)で呼び出してください +$result = convertMessage ($message); + +echo $result ; \ No newline at end of file