LoginSignup
0
0

More than 3 years have passed since last update.

PHP 配列

Last updated at Posted at 2019-09-10

配列の作成

変数 =array(要素,要素,要素);
変数 =[要素,要素,要素];

配列の追加

配列名[] = 

配列の出力

print_r(配列名);

配列の要素を削除

unset(配列名[要素数]); 

要素の数を数える

count(配列名); 

指定した要素で埋める

array_fill(最初のindex,要素数,); 

連想配列の作成

変数 =array(キー名1=>値1,
           キー名2=>値2,
           キー名3=>値3);

2次元配列の作成

変数 =array(配列1,配列2,配列3);
0
0
0

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