Return all the values of an array (not the keys):


SUBMITTED BY: henry1874w

DATE: June 26, 2017, 5:01 p.m.

FORMAT: Text only

SIZE: 94 Bytes

HITS: 268

  1. <?php
  2. $a=array("Name"=>"Peter","Age"=>"41","Country"=>"USA");
  3. print_r(array_values($a));
  4. ?>

comments powered by Disqus