Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  Array Helper  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Sample
Class: Array Helper
Manipulate data in arrays
Author: By
Last change:
Date: 2011-02-14 12:40
Size: 329 bytes
 

Contents

Class file image Download
<?php

include_once('ArrayHelper.php');

echo 
"<pre>";

$a = new ArrayHelper();
$a->setProperties(array("data"=> array(1,2,3)));
print_r($a);

$a->set("data/1","test");
print_r($a);

echo 
$a->has("data/2");
print_r($a->fetchAll()); # not cleared return of deep nested array

print_r($a->getAll());

print_r($a);