summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/helpers
diff options
context:
space:
mode:
authorAdrian Voicu <avenir.ro@gmail.com>2015-03-12 21:11:06 +0100
committerAdrian Voicu <avenir.ro@gmail.com>2015-03-12 21:11:06 +0100
commit0cfe1c3f389ff11a65cf014ea41672834d8719ac (patch)
tree8bcee36d1a414058976048b3ab021dbbe5263389 /user_guide_src/source/helpers
parent8e2f83d7b775d87827a58fbb55a35938eeb66173 (diff)
Update html_helper.rst
Diffstat (limited to 'user_guide_src/source/helpers')
-rw-r--r--user_guide_src/source/helpers/html_helper.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/user_guide_src/source/helpers/html_helper.rst b/user_guide_src/source/helpers/html_helper.rst
index d5069cec4..955ffefc5 100644
--- a/user_guide_src/source/helpers/html_helper.rst
+++ b/user_guide_src/source/helpers/html_helper.rst
@@ -27,11 +27,11 @@ The following functions are available:
.. php:function:: heading([$data = ''[, $h = '1'[, $attributes = '']]])
- :param string $data: Content
- :param string $h: Heading level
- :param array|string $attributes: HTML attributes
- :returns: HTML heading tag
- :rtype: string
+ :param string $data: Content
+ :param string $h: Heading level
+ :param mixed $attributes: HTML attributes
+ :returns: HTML heading tag
+ :rtype: string
Lets you create HTML heading tags. The first parameter will contain the
data, the second the size of the heading. Example::
@@ -45,7 +45,7 @@ The following functions are available:
as a string or as an array::
echo heading('Welcome!', 3, 'class="pink"');
- echo heading('How are you?', 4, array('id'=>'question', 'class'=>'green');
+ echo heading('How are you?', 4, array('id' => 'question', 'class' => 'green'));
The above code produces: