Dictionary.php
public function toPairs()
    {
        $result = [];
        foreach ($this as $key => $value) {
            $result[] = [$key, $value];
        }
        return $result;
    }
public function toPairs()
    {
        $result = [];
        foreach ($this as $key => $value) {
            $result[] = [$key, $value];
        }
        return $result;
    }
public function toPairs ( ) { $ result = [ ] ; foreach ( $ this as $ key => $ value ) { $ result [ ] = [ $ key , $ value ] ; } return $ result ; }
Get array of all key-value pairs in dictionary.

@return  array   Array of pairs. Each pair is 2-element array.
Get array of all key - value pairs in dictionary .