title: How to access elements in an array returned from a function?
body: <p>I need to return multiple values from a function, therefore I have added them to an array and returned the array.</p>
  <pre><code>&lt;?
  
  function data(){
  
  $a = &quot;abc&quot;;
  $b = &quot;def&quot;;
  $c = &quot;ghi&quot;;
  
  return array($a, $b, $c);
  }
  
  
  ?&gt;
  </code></pre>
  <p>How can I receive the values of <code>$a</code>, <code>$b</code>, <code>$c</code> by calling the above function?</p>