How to insert new array to a specific position in multi dimensional array below is the code, how it will be done using php
$aExistingArray = Array
    (
[pages] => Array
    (
        [0] => Array
            (
                [name] => page1
                [elements] => Array
                    (
                        [0] => Array
                            (
                                [type] => text
                                [name] => question2
                                [title] => PSTN
                            )
                        [1] => Array
                            (
                                [type] => radiogroup
                                [name] => question3
                                [title] => Are you satisfied to our services
                                [choices] => Array
                                    (
                                        [0] => Array
                                            (
                                                [value] => item1
                                                [text] => yes
                                            )
                                        [1] => Array
                                            (
                                                [value] => item2
                                                [text] => no
                                            )
                                    )
                            )
                    )
            )
    ))
Below is the new array which I want to insert to elements position at 0 position, how it will be done using array technique
$aToBeInserted = Array
    (
[0] => Array
    (
        [type] => text
        [name] => name
        [title] => name
        )
[1] => Array
    (
        [type] => text
        [name] => question1
        [title] => Test
    )
)
