php dynamic array checking
<p>Hy,</p>

<p>I have a multidimensional array with sub arrays and stuff like this :</p>

<pre><code> [21] =&gt; Array
        (
            [80] =&gt;
            [83] =&gt;
            [A4] =&gt; Array
                (
                    [80] =&gt;
                )

            [85] =&gt;
            [A6] =&gt; Array
                (
                    [80] =&gt;
                )

            [87] =&gt;
            [88] =&gt;
            [A9] =&gt; Array
                (
                    [A0] =&gt; Array
                        (
                            [80] =&gt;
                        )

                )

            [8B] =&gt;
            [AC] =&gt; Array
                (
                    [30] =&gt; Array
                        (
                            [81] =&gt;
                            [82] =&gt;
                            [83] =&gt;
                            [84] =&gt;
                            [85] =&gt;
                            [86] =&gt;
                            [88] =&gt;
                        )

                )

            [8D] =&gt;
            [8E] =&gt;
            [8F] =&gt;
            [91] =&gt;
            [92] =&gt;
            [93] =&gt;
            [94] =&gt;
            [9B] =&gt;
            [96] =&gt;
            [97] =&gt;
            [9D] =&gt;
        )
</code></pre>

<p>I want to create a function to pass a level to check array_keys_exist</p>

<p>If the level is <code>0</code> then it should <code>array_keys_exist($array['21']);</code>
If the level is <code>1</code> then is should <code>array_keys_exist($array['21'][])</code> but the problem is I cannot use <code>$array[21][]</code> and only ckech the <code>80,80,A0 and 30</code>.</p>

<p>Is this possible ? </p>

<p>Thank you</p>
