PHP Classes

File: sample.php

Recommend this page to a friend!
  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: 13 years ago
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);