JStreamString/stream read: Difference between revisions
From Joomla! Documentation
New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JStreamString/... |
m clean up |
||
| Line 1: | Line 1: | ||
{{subst:Description:JStreamString/stream_read}} | |||
{{Description:JStreamString/stream_read}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 35: | Line 30: | ||
</source> | </source> | ||
{{subst:SeeAlso:JStreamString/stream_read}} | |||
{{SeeAlso:JStreamString/stream_read}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:27, 24 March 2017
{{subst:Description:JStreamString/stream_read}}
Syntax
stream_read($count)
| Parameter Name | Default Value | Description |
|---|---|---|
| $count |
Defined in
libraries/joomla/filesystem/streams/string.php
Importing
jimport( 'joomla.filesystem.streams.string' );
Source Body
function stream_read($count)
{
$result = substr($this->_currentstring, $this->_pos, $count);
$this->_pos += $count;
return $result;
}
{{subst:SeeAlso:JStreamString/stream_read}}
Examples
<CodeExamplesForm />