Home » » array_values

array_values

Written By 1 on Sunday, September 30, 2012 | 7:12 PM

array array_values ( array $input )

Return all the values of an array

array_values() returns all the values from the input array and indexes numerically the array.


<?php
$array 
= array("size" => "XL""color" => "gold");
print_r(array_values($array));
?>


Curso PHP - 18 Array visualizando com print_r e re-ordem com array_values

0 Comment:

Post a Comment