PHP ManualThe ArrayAccess interface(PHP 5 >= 5.0.0) IntroductionInterface to provide accessing objects as arrays. Interface synopsis
ArrayAccess
{
/* Methods */
}Example #1 Basic usage
<?php The above example will output something similar to: bool(true) int(2) bool(false) string(7) "A value" obj Object ( [container:obj:private] => Array ( [one] => 1 [three] => 3 [two] => A value [0] => Append 1 [1] => Append 2 [2] => Append 3 ) ) Table of Contents
![]() |
PHP-Index
New Tutorial entries
|