CrossPHP

StringToPHPStream
in package

字符串php代码通过wrapper转换为可以执行的php代码 <pre> 使用方式 stream_register_wrapper("自定义名字", "stringToPHPStream") $var = include ("自定义名字://字符串代码") </pre>

Tags
author

wonli wonli@live.com Class StringToPHPStream

Table of Contents

$content  : array<string|int, mixed>
代码内容
$key  : string
在$content中的标示
$pos  : int
stream_eof()  : mixed
stream_open()  : bool
stream_read()  : string
stream_set_option()  : mixed
stream_stat()  : mixed

Properties

Methods

stream_open()

public stream_open( $path,  $mode,  $options,  $opened_path) : bool
Parameters
$path :
$mode :
$options :
$opened_path :
Return values
bool

stream_read()

public stream_read(int $count) : string
Parameters
$count : int
Return values
string

stream_set_option()

public stream_set_option(int $option, int $arg1, int $arg2) : mixed
Parameters
$option : int
$arg1 : int
$arg2 : int
Return values
mixed

Search results