PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
  Classes of Ladislav Vondracek  >  Crutch Cache  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Crutch Cache
Store variable values in cache files
Author: By
Last change:
Date: 9 years ago
Size: 468 bytes
 

 

Contents

Class file image Download
<?php

include('CrutchCache.php');

// Instance
$example = new CrutchCache('storage', '.');

var_dump($example);


// new variables
$example->from = 'Lawondyss';
$example->name = 'Memtext';
$example->blog = 'lawondyss.posterous.com';
$example->url = NULL;

var_dump($example->all());


// delete one variable
$example->delete('url');

var_dump($example->all());


// delete all variables
$example->delete();

var_dump($example->all());