0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PHPの配列の話

Posted at

配列の使い方

配列を使うには、以下のコードを記載する。

$array = array('文字1', '文字2', '文字3');

表示する方法

以下のコードを記載する。

foreach ($array as $output) {
    echo $output;
}

出力は、以下になる。

文字1文字2文字3

foreach無しでechoした結果

以下のエラーが表示される。

PHP Warning:  Array to string conversion in パス on line 

今回の話は結構適当な話である。
ありがとうございました。

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?