Skip to content

Instantly share code, notes, and snippets.

@GeeH
Forked from igorw/README.md
Last active August 29, 2015 14:07
Show Gist options
  • Save GeeH/26696aaa7145ccc7c331 to your computer and use it in GitHub Desktop.
Save GeeH/26696aaa7145ccc7c331 to your computer and use it in GitHub Desktop.

kayladnls/machine-forget

A simple machine forgetting library.

Example

Here is an example of how you can instruct the machine to forget the answer:

<?
use function kayladnls\machine_forget;

$answer = 42;
machine_forget($answer);
var_dump($answer);

?>

WHAT IS THE ANSWER? WHAT WAS IT? WHAT IS IT?!

<?php
namespace kayladnls;
function machine_forget(&$data) {
$data = null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment