From 7cf535d52afd50300a5e37b1fbc58267e018a5e2 Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Sat, 19 Nov 2011 21:08:45 +0000 Subject: [PATCH] whitespace, spelling, grammar git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@319558 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/spl/splfixedarray/count.xml | 28 ++++++++++++++----------- reference/spl/splfixedarray/getsize.xml | 20 ++++++++++-------- reference/spl/splfixedarray/setsize.xml | 4 ++-- 3 files changed, 29 insertions(+), 23 deletions(-) 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.