title: getting array values without foreach loop
body: <p>Is there any way to get all values in one array without using foreach loops, in this example? </p>
  
  <pre><code>&lt;?php 
  $foo = array(["type"=&gt;"a"], ["type"=&gt;"b"], ["type"=&gt;"c"]);
  </code></pre>
  
  <p>The output I need is <code>array("a", "b", "c")</code></p>
  
  <p>I could accomplish it using something like this</p>
  
  <pre><code>$stack = [];
  
  foreach($foo as $value){
    $stack[] = $value["type"];
  }
  
  var_dump($stack); 
  </code></pre>
  
  <p>But, I am looking for options that does not involve using foreach loops. </p>