# Array: How to insert in right index order?

**URL:** https://forum.kirupa.com/t/array-how-to-insert-in-right-index-order/299874
**Category:** Uncategorized
**Created:** [November 12, 2009, 3:38am UTC](https://forum.kirupa.com/t/array-how-to-insert-in-right-index-order/299874 "2009-11-12T03:38:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![qpixo](https://avatars.discourse-cdn.com/v4/letter/q/c4cdca/32.png) [@qpixo](https://forum.kirupa.com/u/qpixo)
#### Post date: [November 12, 2009, 3:38am UTC](https://forum.kirupa.com/t/array-how-to-insert-in-right-index-order/299874/1 "2009-11-12T03:38:02Z")

</div>

Quick question:  
I have 2 arrays and I want to create the third one as associative array.

ex: tab1 contains IDtab1 (10,5,6,…) tab2 contains IDtab2 (12,12,12,5,5,6,10,10…)

tab3 contains both IDtab1 and IDtab2 (associative array)

However I want to able to insert into the right INDEX area only.

Something Like: tab3 -\> IDtab1(10,5,6) IDtab2(10,10,5,5,5,6)  
In the right order

How can i do that??
