title: PHP explode get specfic index value in one line
body: <p>I want to do </p>
  
  <pre><code>&lt;?php 
  $str = "I want to access 2nd or 3rd index in one line";
  echo explode(" ",$str)[2];
  ?&gt;
  </code></pre>
  
  <p>We can access first index easily using </p>
  
  <pre><code>stristr($str," ",true);  //For php version &gt;= 5.3
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$foo = array_shift(explode(':', $foo));
  </code></pre>
  
  <p>or </p>
  
  <pre><code>list($str) = explode(" ", $str);
  </code></pre>
  
  <p><strong>BUT</strong></p>
  
  <p><strong>HOW TO ACCESS SPECIFIC INDEX [1],[2] OR [3] IN ONE LINE???</strong></p>