<?php /** * @ignore */ /** * @ignore */ require_once 'genericarray.lib.php'; /** * @ignore */ class Foo { } $array = new ArrayOfFoo(); $array[] = new Foo(); // this will fail: is not a Foo object. $array[] = 12; ?>
info at phpclasses dot org