<?php
include 'SimpleArray.php';
$a = new SimpleArray();
$a['123.456'] = 'string'; // the key is a string
$a[123.456] = 'float'; // the key is a float
$a[] = 'value'; // standard definition
// it's impossible to walk through it using foreach or each
// The right way is :
$a->rewind();
while($a->valid()) {
// do some stuff using $a->key() and $a->current()
$a->next();
}
|