summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/helpers/array_helper.rst
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2013-07-20 01:02:53 +0200
committerDerek Jones <derek.jones@ellislab.com>2013-07-20 01:02:53 +0200
commitb8c283a695c8074a57d8c3dfa00934312638931d (patch)
treebde2ff27f7fbfbeb8dd97cbec24e7e5d3c006aaf /user_guide_src/source/helpers/array_helper.rst
parentabbf518a5ec7c81bf928ced417b7670490f0f0d3 (diff)
Dropping unecessary php: directive to function definitions in user guide
Diffstat (limited to 'user_guide_src/source/helpers/array_helper.rst')
-rw-r--r--user_guide_src/source/helpers/array_helper.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/user_guide_src/source/helpers/array_helper.rst b/user_guide_src/source/helpers/array_helper.rst
index 9435b3ac7..90ead2942 100644
--- a/user_guide_src/source/helpers/array_helper.rst
+++ b/user_guide_src/source/helpers/array_helper.rst
@@ -19,7 +19,7 @@ The following functions are available:
element()
=========
-.. php:function:: element($item, $array, $default = NULL)
+.. function:: element($item, $array, $default = NULL)
:param string $item: Item to fetch from the array
:param array $array: Input array
@@ -39,13 +39,13 @@ Example::
'size' => ''
);
- echo element('color', $array); // returns "red"
- echo element('size', $array, 'foobar'); // returns "foobar"
+ echo element('color', $array); // returns "red"
+ echo element('size', $array, 'foobar'); // returns "foobar"
elements()
==========
-.. php:function:: elements($items, $array, $default = NULL)
+.. function:: elements($items, $array, $default = NULL)
:param string $item: Item to fetch from the array
:param array $array: Input array
@@ -55,7 +55,7 @@ elements()
Lets you fetch a number of items from an array. The function tests
whether each of the array indices is set. If an index does not exist it
is set to NULL, or whatever you've specified as the default value via
-the third parameter.
+the third parameter.
Example::
@@ -106,7 +106,7 @@ updated.
random_element()
================
-.. php:function:: random_element($array)
+.. function:: random_element($array)
:param array $array: Input array
:returns: string (a random element from the array)