• PHP Video Tutorials

PHP - Ds Map values() Function



Ds\Map::values() function can return a sequence of the map's values.

Syntax

public Ds\Sequence Ds\Map::values( void )

Ds\Map::values() function can return a sequence containing all values of a map in the same order.

Ds\Map::values() function doesn't have any parameters.

Ds\Map::values() function can return Ds\Sequence containing all values of a map.

Example

<?php  
   $map = new \Ds\Map(["a" => "Tutorials", "b" => "Point", "c" => "India"]);  
   print_r($map->values()); 
  
   $map = new \Ds\Map(["b" => "Tutorix", "e" => "Hyderabad", "f" => "Ind"]);  
   print_r($map->values()); 
?>
php_function_reference.htm
Advertisements