Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2010-06-23 05:27
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());