API16

JStreamString/stream read: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 1: Line 1:
{{subst:Description:JStreamString/stream_read}}
===Syntax===
===Syntax===
<source lang="php">stream_read($count)</source>
<source lang="php">stream_read($count)</source>
Line 31: Line 29:




{{subst:SeeAlso:JStreamString/stream_read}}
 


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=stream_read
  category=stream_read
  category=JStreamString
  category=JStreamString
  category=CodeExample
  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