PHP Classes

File: example3.php

Recommend this page to a friend!
  Classes of Moritz HeidkampPreview the content newsletter M   iviArray   example3.php   Download  
File: example3.php
Role: Example script
Content type: text/plain
Description: Explaining handling of multi-dimensional arrays
Class: iviArray
Encapsulation of PHP array functions
Author: By
Last change:
Date: 20 years ago
Size: 268 bytes
 

Contents

Class file image Download
<?php

 
require_once('iviArray.class.php');

 
$array = new iviArray(array(array('foo' => array('name' => 'bar'))));
 
 print(
'<pre>');
 print(
$array->get(0, 'foo', 'name'));
 print(
"\n");
 print(
$array->get(array(0, 'foo', 'name')));
 print(
'</pre>');
 
?>