Ds\Pair::toArrayConverts the pair to an array. Description
public array Ds\Pair::toArray
( void
)
Converts the pair to an array.
ParametersThis function has no parameters. Return ValuesAn array containing all the values in the same order as the pair. ExamplesExample #1 Ds\Pair::toArray example
<?php The above example will output something similar to: array(2) { ["key"]=> string(1) "a" ["value"]=> int(1) } |