Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
0 から始まるキーを持つ配列があります。配列を再インデックスして、キーを 0 ではなく 3 から開始するようにシフトする方法はありますか?
$newArray = array(); foreach($myArray as $key=>$value){ $newArray[$key+3] = $value; } print_r($newArray);