Examples

// Try to use array key as propertyvar_dump($fruitsArrayObject->lemons);// Set the flag so that the array keys can be used as properties of the ArrayObject$fruitsArrayObject->setFlags(ArrayObject::ARRAY_AS_PROPS);// Try it againvar_dump($fruitsArrayObject->lemons);?>