Ds\Pair::toArrayConverts the pair to an array. Beschreibung
public array Ds\Pair::toArray
( void
)
Converts the pair to an array.
Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteAn array containing all the values in the same order as the pair. BeispieleBeispiel #1 Ds\Pair::toArray example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
array(2) {
["key"]=>
string(1) "a"
["value"]=>
int(1)
}
|