PHP 8.4.24 Released!

Ds\Pair::clear

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

Ds\Pair::clearRemoves all values

Descrizione

public function Ds\Pair::clear(): void

Removes all values from the pair.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Nessun valore viene restituito.

Esempi

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

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

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

Il precedente esempio visualizzerà qualcosa simile a:

Ds\Pair Object
(
    [key] => a
    [value] => 1
)
Ds\Pair Object
(
)
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top