配列のキーは負の数字もOK PHP 2018.05.022008.05.28 PHP 覚え書き ちょっとメモ $ary = array(-1 => 'negative', 0 => 'zero', 1 => 'one'); 負の値もちゃんと解釈される。
コメント