title: Why is there no output when using a PHP list function?
body: <p>I want to assign values of pathinfo function to variables like so:</p>
  <pre><code>list($dirname, $basename, $extension, $filename) = pathinfo($path_image);
  echo $dirname.$basename.$extension.$filename;
  </code></pre>
  <p>However there is no output.</p>
  <p><strong>But if I run only:</strong></p>
  <pre><code>print_r(pathinfo($path_image));
  </code></pre>
  <p>I get output like so:</p>
  <pre><code>Array ( [dirname] =&gt; http://blah.com/images [basename] =&gt; image123.jpg [extension] =&gt; jpg [filename] =&gt; image123) 
  </code></pre>