diff --git a/reference/spl/arrayobject/append.xml b/reference/spl/arrayobject/append.xml
index 32a944ff88..5cea1eca51 100644
--- a/reference/spl/arrayobject/append.xml
+++ b/reference/spl/arrayobject/append.xml
@@ -1,5 +1,5 @@
-
+
ArrayObject::append
@@ -9,15 +9,34 @@
&reftitle.description;
voidArrayObject::append
- mixednewval
+ mixedvalue
-
- &warn.undocumented.func;
+
+ Appends a new value as the last element.
+
+
+
+ This method cannot be called when the ArrayObject
+ was constructed from an object.
+ Use ArrayObject::offsetset instead.
+
+
&reftitle.parameters;
- &no.function.parameters;
+
+
+
+ value
+
+
+ The value being appended.
+
+
+
+
+
@@ -27,6 +46,56 @@
+
+ &reftitle.examples;
+
+
+ ArrayObject::append example
+
+append('fourth');
+$arrayobj->append(array('five', 'six'));
+var_dump($arrayobj);
+?>
+]]>
+
+ &example.outputs;
+
+
+ string(5) "first"
+ [1]=>
+ string(6) "second"
+ [2]=>
+ string(5) "third"
+ [3]=>
+ string(6) "fourth"
+ [4]=>
+ array(2) {
+ [0]=>
+ string(4) "five"
+ [1]=>
+ string(3) "six"
+ }
+}
+]]>
+
+
+
+
+
+
+ &reftitle.seealso;
+
+
+ ArrayObject::offsetset
+
+
+
+
+
ArrayObject::__construct
@@ -10,7 +10,9 @@
&reftitle.description;
ArrayObject::__construct
- mixedinput
+ mixedinput
+ intflags
+ stringiterator_class
This constructs a new array object.
@@ -26,7 +28,24 @@
The input parameter accepts an
- array or another ArrayObject.
+ array or an Object.
+
+
+
+
+ flags
+
+
+ Flags to control the behaviour of the ArrayObject object.
+
+
+
+
+ iterator_class
+
+
+ Specify the class that will be used for iteration of the ArrayObject object.
+ ArrayIterator is the default class used.
@@ -75,6 +94,16 @@ object(ArrayObject)#1 (3) {
+
+
+ &reftitle.seealso;
+
+
+ ArrayObject::setflags
+
+
+
+
+
ArrayObject::count
- Get the number of elements in the Iterator
+ Get the number of public properties in the ArrayObject
&reftitle.description;
@@ -11,8 +11,9 @@
intArrayObject::count
-
- &warn.undocumented.func;
+
+ Get the number of public properties in the ArrayObject.
+
@@ -23,10 +24,48 @@
&reftitle.returnvalues;
- The number of elements in the Iterator.
+ The number of public properties in the ArrayObject.
+
+
+ When the ArrayObject is constructed from an array all properties are public.
+
+
+
+ &reftitle.examples;
+
+
+ ArrayObject::count example
+
+count());
+
+$arrayobj = new ArrayObject(array('first','second','third'));
+var_dump($arrayobj->count());
+?>
+]]>
+
+ &example.outputs;
+
+
+
+
+
+
+
+
ArrayObject::offsetExists
- Returns whether the requested $index exists
+ Returns whether the requested index exists
&reftitle.description;
@@ -11,8 +11,6 @@
boolArrayObject::offsetExists
mixedindex
-
- &warn.undocumented.func;
@@ -34,7 +32,34 @@
&reftitle.returnvalues;
- &true; if the requested $index exists, otherwise &false;
+ &true; if the requested index exists, otherwise &false;
+
+
+
+
+ &reftitle.examples;
+
+
+ ArrayObject::offsetexists example
+
+'e.g.'));
+var_dump($arrayobj->offsetexists(1));
+var_dump($arrayobj->offsetexists('example'));
+var_dump($arrayobj->offsetexists('notfound'));
+?>
+]]>
+
+ &example.outputs;
+
+
+
+
diff --git a/reference/spl/arrayobject/offsetget.xml b/reference/spl/arrayobject/offsetget.xml
index 3c0685fd52..eae413a781 100644
--- a/reference/spl/arrayobject/offsetget.xml
+++ b/reference/spl/arrayobject/offsetget.xml
@@ -1,9 +1,9 @@
-
+
ArrayObject::offsetGet
- Returns the value at the specified $index
+ Returns the value at the specified index
&reftitle.description;
@@ -11,8 +11,6 @@
mixedArrayObject::offsetGet
mixedindex
-
- &warn.undocumented.func;
@@ -34,7 +32,34 @@
&reftitle.returnvalues;
- The value at the specified $index.
+ The value at the specified index or &false;.
+
+
+
+
+ &reftitle.examples;
+
+
+ ArrayObject::offsetget example
+
+'e.g.'));
+var_dump($arrayobj->offsetget(1));
+var_dump($arrayobj->offsetget('example'));
+var_dump($arrayobj->offsetexists('notfound'));
+?>
+]]>
+
+ &example.outputs;
+
+
+
+
diff --git a/reference/spl/arrayobject/offsetset.xml b/reference/spl/arrayobject/offsetset.xml
index 06b3895a38..965158de2e 100644
--- a/reference/spl/arrayobject/offsetset.xml
+++ b/reference/spl/arrayobject/offsetset.xml
@@ -1,9 +1,9 @@
-
+
ArrayObject::offsetSet
- Sets the value at the specified $index to $newval
+ Sets the value at the specified index to newval
&reftitle.description;
@@ -13,8 +13,6 @@
mixednewval
- &warn.undocumented.func;
-
Sets the value at the specified index to newval.
@@ -51,6 +49,67 @@
+
+ &reftitle.examples;
+
+
+ ArrayObject::offsetset example
+
+offsetset(4, 'four');
+$arrayobj->offsetset('group', array('g1', 'g2'));
+var_dump($arrayobj);
+
+$arrayobj = new ArrayObject(array('zero','one'));
+$arrayobj->offsetset(null, 'last');
+var_dump($arrayobj);
+?>
+]]>
+
+ &example.outputs;
+
+
+ string(11) "prop:public"
+ [4]=>
+ string(4) "four"
+ ["group"]=>
+ array(2) {
+ [0]=>
+ string(2) "g1"
+ [1]=>
+ string(2) "g2"
+ }
+}
+object(ArrayObject)#3 (3) {
+ [0]=>
+ string(4) "zero"
+ [1]=>
+ string(3) "one"
+ [2]=>
+ string(4) "last"
+}
+]]>
+
+
+
+
+
+
+ &reftitle.seealso;
+
+
+ ArrayObject::append
+
+
+
+
+
ArrayObject::offsetUnset
- Unsets the value at the specified $index
+ Unsets the value at the specified index
&reftitle.description;
@@ -11,9 +11,6 @@
voidArrayObject::offsetUnset
mixedindex
-
- &warn.undocumented.func;
-
Unsets the value at the specified index.
@@ -42,6 +39,33 @@
+
+ &reftitle.examples;
+
+
+ ArrayObject::offsetunset example
+
+'zero',2=>'two'));
+$arrayobj->offsetunset(2);
+var_dump($arrayobj);
+?>
+]]>
+
+ &example.outputs;
+
+
+ string(4) "zero"
+}
+]]>
+
+
+
+
+