Jump to content
php.lv forumi

Massiivi


smarty

Recommended Posts

  • Replies 39
  • Created
  • Last Reply

Top Posters In This Topic

es varbuut stulbs esmu? vai arii nemaaku lasiit

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

Example 1. array_values() example
<?php
$array = array("size" => "XL", "color" => "gold");
print_r(array_values($array));
?>

The above example will output:
Array
(
  [0] => XL
  [1] => gold
)

Link to comment
Share on other sites


×
×
  • Create New...