JStreamString/stream read: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 1: | Line 1: | ||
===Syntax=== | ===Syntax=== | ||
<source lang="php">stream_read($count)</source> | <source lang="php">stream_read($count)</source> | ||
| Line 31: | Line 29: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=stream_read | category=stream_read | ||
category=JStreamString | category=JStreamString | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:08, 25 March 2017
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;
}
Examples
Code Examples