0
0

More than 3 years have passed since last update.

array_shift()ってなんやねん!!

Last updated at Posted at 2020-11-08

array_shift()ってなんやねん

説明

array_shift() - 配列の先頭の要素を取り除く
ただそれだけ、

$tehai_predict = [1,2,3,4,5,6,7,8,9,11,12,13];
$lead_element = array_shift($tehai12_predict);
var_dump($tehai_predict);
var_dump($lead_element);
[2,3,4,5,6,7,8,9,11,12,13]
1

が出力される。

筆者

2020年1月ごろからプログラミング学習し始めました。
日々の学習についてあげています。
麻雀点数計算アプリを作成中!!!

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