◆ 関数リファレンス array_unshift( ) 1つ以上の配列インデックスを、現在の配列の先頭に追加します。 書式: array_unshift (配列, 追加するインデックス); サンプル: $fruit = array("りんご", "みかん", "ぶどう"); array_unshift($fruit, "いちご"); print_r($fruit); array_unshift()関数のサンプルスクリプト実行結果 PageTop / Home / PHP入門 / リファレンス目次