title: In PHP are recalls to any given function the variable they return or a call to the function itself
body: <p>For example:</p>
  
  <pre><code>&lt;?php
      $text="/p hello";
      $a= explode("/",$text);
      $a=$a[1];
      echo $a;
  ?&gt;
  </code></pre>
  
  <p>works, however:</p>
  
  <pre><code>&lt;?php
      $text="/p hello";
      $a= explode("/",$text)[1];
      echo $a;
  ?&gt;
  </code></pre>
  
  <p>results in a syntax error. In python you can just treat a recall to a function that returns a list/array as a list/array. Is this the same for php?</p>