Miscellany
public php v1 · immutablefunction set_email($email) { // do sanity checks or whatever $email = escape_String_stuff($email); $this->changes['email'] = $email; $this->commit();}function commit($query) {if (USER_USE_MEMORY == true) { if ($this->sane_cache) { // check was available in memory on call $cacheget = $memcache->query($query) }} if (!$cacheget) { // not in memory $result = $db->query(this stuff); if (!$result) { // database not found, do the stuff here if shit is nuked }}}