title: Array display without key
body: <p>I am trying to display an array without key item. Just want to display array values without key.
  Here is my sample code I tried</p>
  
  <pre><code>$myList = array(
          0 =&gt;array(
                  "product_id"=&gt; 8085
              ),
           1 =&gt;array(
                  "product_id"=&gt; 8087
              ),
            2 =&gt;array(
                  "product_id"=&gt; 8086
              ),
             3 =&gt;array(
                  "product_id"=&gt; 8042
              ),
          );
  
  
    $newList = array();
  foreach($myList as $listItem) {
      $newList[] = $listItem['product_id'];
  }
  $a=array();
  $a= array_values($newList);
  print_r($a);
  </code></pre>
  
  <p>I want my array like this</p>
  
  <pre><code>$productIds = array(8085,8087,8086,8042);
  </code></pre>
  
  <p>Here is my sample code <a href="https://eval.in/718887" rel="nofollow noreferrer">link</a></p>