diff --git a/reference/spl/splfixedarray/count.xml b/reference/spl/splfixedarray/count.xml index 131df319e1..4c30c762c8 100644 --- a/reference/spl/splfixedarray/count.xml +++ b/reference/spl/splfixedarray/count.xml @@ -33,13 +33,13 @@ &reftitle.examples; - <function>SplFixedArray::count</function> example + <methodname>SplFixedArray::count</methodname> example count() . "\n"; - echo count($array) . "\n"; +$array = new SplFixedArray(5); +echo $array->count() . "\n"; +echo count($array) . "\n"; ?> ]]> @@ -56,19 +56,23 @@ &reftitle.notes; - - This method is functionally equivalent to SplFixedArray::getSize. - - - The count of elements is always equal to the set size because all values are initially - initialized with &null;. - + + + This method is functionally equivalent to SplFixedArray::getSize. + + + + + The count of elements is always equal to the set size because all values are initially + initialized with &null;. + + &reftitle.seealso; - SplFixedArray::getSize + SplFixedArray::getSize diff --git a/reference/spl/splfixedarray/getsize.xml b/reference/spl/splfixedarray/getsize.xml index 9262d13324..70a191aa1e 100644 --- a/reference/spl/splfixedarray/getsize.xml +++ b/reference/spl/splfixedarray/getsize.xml @@ -33,14 +33,14 @@ &reftitle.examples; - <function>SplFixedArray::getSize</function> example + <methodname>SplFixedArray::getSize</methodname> example getSize()."\n"; - $array->setSize(10); - echo $array->getSize()."\n"; +$array = new SplFixedArray(5); +echo $array->getSize()."\n"; +$array->setSize(10); +echo $array->getSize()."\n"; ?> ]]> @@ -56,15 +56,17 @@ &reftitle.notes; - - This method is functionally equivalent to SplFixedArray::count - + + + This method is functionally equivalent to SplFixedArray::count + + &reftitle.seealso; - SplFixedArray::count + SplFixedArray::count diff --git a/reference/spl/splfixedarray/setsize.xml b/reference/spl/splfixedarray/setsize.xml index 1406ee4848..b0367ae47f 100644 --- a/reference/spl/splfixedarray/setsize.xml +++ b/reference/spl/splfixedarray/setsize.xml @@ -15,7 +15,7 @@ Change the size of an array to the new size of size. If size is less than the current array size, any values after the new size - will be discarded. If size is greather than the current array size, the + will be discarded. If size is greater than the current array size, the array will be padded with &null; values. @@ -28,7 +28,7 @@ size - The new array size. This should be a value between 0 and PHP_INT_MAX + The new array size. This should be a value between 0 and PHP_INT_MAX.