Get index of an array
<p>I'm having some problems retrieving data from a multidimensional array. I have something like this:</p>

<pre><code>$Act[0] = array(
"Number" =&gt; 23,
"Local" =&gt; "woods",
"props" =&gt; "swords..."
.....

$Act[1] = array(
"Number" =&gt; 27,
"Local" =&gt; "castle",
"props" =&gt; "swords..."
.....
......

$Story[$day] = array(
                  "Date" =&gt; $SDate,
                  "Acts" =&gt; $Acts
                  );
</code></pre>

<p>What I want to do is to get all the numbers from the Act array and use implode to store it in a mysql db.
I tried array_keys but it doesnt work with multi-dimensional arrays. I dont know if it would be even appropriate for this. So basically I want an array with all the values of "Number" of $Story[1]["Acts"], so it would have to go through:</p>

<pre><code>$Story[1]["Act"][0]["Number"]
$Story[1]["Act"][1]["Number"]
$Story[1]["Act"][2]["Number"]
...
</code></pre>
