Ds\Pair::toArray

Converts the pair to an &array;

&reftitle.description; public `array` `Ds\Pair::toArray`

Converts the pair to an &array;.

Casting to an &array; is not supported yet.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

An &array; containing all the values in the same order as the pair.

&reftitle.examples;

### `Ds\Pair::toArray` example

    <?php
    $pair = new \Ds\Pair("a", 1);

    var_dump($pair->toArray());
    ?>

&example.outputs.similar;

    array(2) {
      ["key"]=>
      string(1) "a"
      ["value"]=>
      int(1)
    }