title: Use array from function directly, without assigning a variable first
body: <p>I'm curious if I can assign a variable the value of a specific array index value returned by a function in PHP on one line.</p>
  
  <p>Right now I have a function that returns an associative array and I do what I want in two lines.</p>
  
  <pre><code>$var = myFunction($param1, $param2);
  $var = $var['specificIndex'];
  </code></pre>
  
  <p>without adding a parameter that determines what the return type is, is there a way to do this in one line?</p>