memory_reset_peak_usage

Reset the peak memory usage

&reftitle.description; `void` `memory_reset_peak_usage`

Resets the peak memory usage returned by the `memory_get_peak_usage` function.

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

&return.void;

&reftitle.examples;

### `memory_reset_peak_usage` example

    <?php

    var_dump(memory_get_peak_usage());

    $a = str_repeat("Hello", 424242);
    var_dump(memory_get_peak_usage());

    unset($a);
    memory_reset_peak_usage();

    $a = str_repeat("Hello", 2424);
    var_dump(memory_get_peak_usage());

    ?>

&example.outputs.similar;

    int(422440)
    int(2508672)
    int(399208)

&reftitle.seealso;

- `memory_get_peak_usage`