Actions

API17

Difference between revisions of "JUtility::return bytes"

From Joomla! Documentation

(Layout updates)
m (See also: moving preparation)
 
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JUtility::return_bytes|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JUtility::return_bytes|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JUtility::return_bytes ($val)
+
public function return_bytes ($val)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' int size in bytes
int size in bytes
+
* '''Defined''' on line 207 of libraries/joomla/utilities/utility.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/utilities/utility.php (line 206)
+
* see source code in [[jplatform:utilities/utility.php#cl-206|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JUtility::return_bytes source code''' on [[jplatform:utilities/utility.php#cl-199|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JUtility|JUtility]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
 +
* [[API17:JUtility::return_bytes|Other versions of JUtility::return_bytes]]
 +
{{SeeAlso:JUtility::return_bytes}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JUtility::return_bytes|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JUtility::return_bytes|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JUtility/11.1|JUtility]]
+
===User contributed notes===
* [[JUtility::return_bytes|Other versions of this method]]
+
{{SeeAlso:JUtility::return_bytes}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 48: Line 44:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JUtility]][[Category:JUtility::return_bytes]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 20:50, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JUtility::return_bytes

Description

Return the byte value of a particular string.

Description:JUtility::return bytes [Edit Descripton]

public function return_bytes ($val)
Parameter Type Default Description
$val string String optionally with G, M or K suffix
  • Returns int size in bytes
  • Defined on line 207 of libraries/joomla/utilities/utility.php
  • Since Joomla 11.1

See also

SeeAlso:JUtility::return bytes [Edit See Also]

User contributed notes

<CodeExamplesForm />