|
Ds\Map::toArrayConverts the map to an array. Beschreibung
public array Ds\Map::toArray
( void
)
Converts the map to an array. Achtung
Maps where non-scalar keys are can't be converted to an array. Achtung
An array will treat all numeric keys as integers,
eg.
Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteAn array containing all the values in the same order as the map. BeispieleBeispiel #1 Ds\Map::toArray example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
array(3) {
["a"]=>
int(1)
["b"]=>
int(2)
["c"]=>
int(3)
}
|