title: How to get value of array inside another array in php?
body: <p>I made a php page in which I got the array within array value. </p>
  
  <p>Here is my array:</p>
  
  <pre><code>Array (
    [events] =&gt; Array ( [0] =&gt; 5 [1] =&gt; 7 [2] =&gt; 8 )
    [fromdate] =&gt;
    [todate] =&gt;
    [description] =&gt;
    [subject] =&gt;
    [fromname] =&gt;
    [replyto] =&gt;
    [senddatetime] =&gt;
    [timezone] =&gt; America/Los_Angeles
    [message] =&gt;
    [submit_skip] =&gt; Continue
  )
  </code></pre>
  
  <p>This array is the POST data from previous page. I want to get <code>events</code> value in a variable. How can I do this? </p>
  
  <p>I use this for getting events value but it gives me the array but I want to get first event value</p>
  
  <pre><code>echo $eventid=$_POST['events'];
  </code></pre>