summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/helpers/number_helper.rst
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide_src/source/helpers/number_helper.rst')
-rw-r--r--user_guide_src/source/helpers/number_helper.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/helpers/number_helper.rst b/user_guide_src/source/helpers/number_helper.rst
index 8e0ebda5e..4e12f9a27 100644
--- a/user_guide_src/source/helpers/number_helper.rst
+++ b/user_guide_src/source/helpers/number_helper.rst
@@ -19,7 +19,7 @@ The following functions are available:
byte_format()
=============
-.. php:function:: byte_format($num, $precision = 1)
+.. function:: byte_format($num, $precision = 1)
:param mixed $num: Number of bytes
:param int $precision: Floating point precision
@@ -27,7 +27,7 @@ byte_format()
Formats numbers as bytes, based on size, and adds the appropriate
suffix. Examples::
-
+
echo byte_format(456); // Returns 456 Bytes
echo byte_format(4567); // Returns 4.5 KB
echo byte_format(45678); // Returns 44.6 KB