GoLang Ds\Pair::clear

request it (374)
GoLang replacement for PHP's Ds\Pair::clear [edit | history]



Do you know a GoLang replacement for PHP's Ds\Pair::clear? Write it!

PHP Ds\Pair::clear

PHP original manual for Ds\Pair::clear [ show | php.net ]

Ds\Pair::clear

(No version information available, might only be in Git)

Ds\Pair::clearRemoves all values

Description

public void Ds\Pair::clear ( void )

Removes all values from the pair.

Parameters

This function has no parameters.

Return Values

No value is returned.

Examples

Example #1 Ds\Pair::clear() example

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

$pair->clear();
print_r($pair);
?>

The above example will output something similar to:

Ds\Pair Object
(
    [0] => 1
    [1] => 2
    [2] => 3
)
Ds\Pair Object
(
)