__construct() public method

public __construct ( string | resource $stream, string $mode = 'r' )
$stream string | resource
$mode string Mode with which to open stream
Beispiel #1
0
 public function __construct($string)
 {
     parent::__construct('data://text/plain;base64,' . base64_encode($string));
 }