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 @@ ";