【標準入力メニュー】> FINAL問題【半角スペース区切りでの文字列の分割】5 つの文字列の半角スペース区切りでの分割 (paizaランク D 相当) [難易度: 699 ±13]
※リンク先へ移動するためには[paiza]へのログインが必要です。

文字列one two three four five
を、半角スペースで分割して出力してください。
入力値(例)
なし
出力値(例)
one
two
three
four
five
解答例
1 2 3 4 5 6 7 |
<?php $array = ["one", "two", "three", "four", "five"]; foreach($array as $value) { echo $value. "\n"; } ?> |
