From b8c779f3786c56567bd814ac9b70690d140965e2 Mon Sep 17 00:00:00 2001 From: m-takatsuki <26-m-takatsuki-webstar@it-college.co.jp> Date: Tue, 6 Oct 2026 15:43:21 +0900 Subject: [PATCH] =?UTF-8?q?Ex.5=20=E5=AE=8C=E4=BA=86=20Ex.6=20=E5=AE=8C?= =?UTF-8?q?=E4=BA=86=20Ex.7=20=E5=AE=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Question01-StartProgram/Ex05.php | 2 +- Question01-StartProgram/Ex06.php | 7 ++++++- Question01-StartProgram/Ex07.php | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Question01-StartProgram/Ex05.php b/Question01-StartProgram/Ex05.php index ef1a6be..51dd5cf 100644 --- a/Question01-StartProgram/Ex05.php +++ b/Question01-StartProgram/Ex05.php @@ -4,7 +4,7 @@ $keyword =['平','島','沼','山','森']; // TODO: 配列keywordに格納されている「沼」のみを表示してください -echo $keyword [2]; +echo $keyword[2]; // 【+αチャレンジ】 // 第4章で学ぶ「制御構文」を使うと、もっと簡単に書けます! diff --git a/Question01-StartProgram/Ex06.php b/Question01-StartProgram/Ex06.php index 585b477..b7bfd13 100644 --- a/Question01-StartProgram/Ex06.php +++ b/Question01-StartProgram/Ex06.php @@ -9,6 +9,11 @@ * pass |12qwaszx * * */ - +$array =[ + 'name' => 'suzuki', + 'mail' => 'suzuki@hoge.com', + 'pass' => '12qwaszx' +]; // TODO: 配列arrayのnameの値を出力してください +echo $array['name']; \ No newline at end of file diff --git a/Question01-StartProgram/Ex07.php b/Question01-StartProgram/Ex07.php index b56e77a..75c07fe 100644 --- a/Question01-StartProgram/Ex07.php +++ b/Question01-StartProgram/Ex07.php @@ -1,7 +1,9 @@ ";