String Stream Wrapper
This class allows you to use a PHP string in the same way that you would normally use a regular stream wrapper
- Depuis
- 1.7.0
◆ stream_eof()
End of field check
- Renvoie
- boolean True if at end of field.
- Depuis
- 1.7.0
◆ stream_flush()
Stream flush, always returns true.
- Renvoie
- boolean
- Depuis
- 1.7.0
- Note
- Data storage is not supported
◆ stream_open()
stream_open |
( |
|
$path, |
|
|
|
$mode, |
|
|
|
$options, |
|
|
& |
$openedPath |
|
) |
| |
Method to open a file or URL.
- Paramètres
-
string | $path | The stream path. |
string | $mode | Not used. |
integer | $options | Not used. |
string | &$openedPath | Not used. |
- Renvoie
- boolean
- Depuis
- 1.7.0
Références $path, et StringController\getRef().
◆ stream_read()
Method to read a given number of bytes starting at the current position and moving to the end of the string defined by the current position plus the given number.
- Paramètres
-
integer | $count | Bytes of data from the current position should be returned. |
- Renvoie
- void
- Depuis
- 1.7.0
https://www.php.net/manual/en/streamwrapper.stream-read.php
Références $count.
◆ stream_seek()
stream_seek |
( |
|
$offset, |
|
|
|
$whence |
|
) |
| |
Stream offset
- Paramètres
-
integer | $offset | The starting offset. |
integer | $whence | SEEK_SET, SEEK_CUR, SEEK_END |
- Renvoie
- boolean True on success.
- Depuis
- 1.7.0
Références $offset.
◆ stream_stat()
Method to retrieve information from a file resource
- Renvoie
- array
1.7.0
◆ stream_tell()
Method to get the current position
- Renvoie
- integer The position
- Depuis
- 1.7.0
◆ stream_write()
Stream write, always returning false.
- Paramètres
-
string | $data | The data to write. |
- Renvoie
- boolean
- Depuis
- 1.7.0
- Note
- Updating the string is not supported.
◆ url_stat()
url_stat |
( |
|
$path, |
|
|
|
$flags = 0 |
|
) |
| |
Method to retrieve information about a file.
- Paramètres
-
string | $path | File path or URL to stat |
integer | $flags | Additional flags set by the streams API |
- Renvoie
- array
1.7.0
Références $now, $path, et StringController\getRef().
◆ $currentString
◆ $len
◆ $mode
◆ $openedPath
◆ $options
◆ $path
◆ $pos
◆ $stat
La documentation de cette classe a été générée à partir du fichier suivant :