How to define level of multidimensional array
<p>Example</p>

<pre><code>Array
(
    [key11] =&gt; value11
    [key12] =&gt; Array
        (
            [key21] =&gt; value21
            [key22] =&gt; value22
            [key23] =&gt; Array
                (
                    [key31] =&gt; value31
                    [key32] =&gt; value32
                    [key33] =&gt; value33
                )

            [key24] =&gt; value24
        )

    [key13] =&gt; Array
        (
            [key25] =&gt; value25
        )

)
</code></pre>

<p>Answer: key11 - 1, key21 - 2, key31 - 3.</p>

<p>P.S. Names for keys and values I created just for example! In fact, names arn't so simple. Thanks!</p>
