Traversing a structure in PHP
<p>I have the following structure:</p>

<pre><code>Array
(
    [signupbasic] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [name] =&gt; Enter your first name or username
                    [email] =&gt; Enter your email address
                    [password] =&gt; Enter your password
                    [phone] =&gt; Enter your mobile number
                    [message1] =&gt; A text will be send to your phone - reply to validate
                    [gender] =&gt; Array
                        (
                            [label] =&gt; Gender
                            [values] =&gt; Array
                                (
                                    [0] =&gt; Array
                                        (
                                            [Female] =&gt; 1
                                        )

                                    [1] =&gt; Array
                                        (
                                            [Male] =&gt; 2
                                        )

                                )

                        )

                    [birthday] =&gt; Array
                        (
                            [label] =&gt; Date of birth
                            [values] =&gt; date
                        )

                    [message2] =&gt; By clicking on "Continue" below you agree to Terms of Service and Privacy Policy
                )

        )

)
</code></pre>

<p>As you can see Gender &amp; Birthday are arrays of different sizes. I am not getting how can I traverse the above structure due to the varying size of Gender and Birthday. </p>

<p>Can any body please help me to achieve this?</p>
