PHP Classes

File: examples/exampleFail.php

Recommend this page to a friend!
  Classes of Thomas Björk   Fuse Array   examples/exampleFail.php   Download  
File: examples/exampleFail.php
Role: Example script
Content type: text/plain
Description: Example on how not to use the class
Class: Fuse Array
Manage arrays with read only properties
Author: By
Last change: Update of examples/exampleFail.php
Date: 5 months ago
Size: 223 bytes


Class file image Download

$fuse = FuseArray::Convert(array(1,2,3,4));

array_shift($fuse); // Fails since fuse is an object and not an array

foreach($fuse as $key => $value) {
$key.' - '.$value.PHP_EOL;