Generate
in package
Write PHP arrays to a file.
Table of Contents
Properties
Methods
- __construct() : void
- __destruct() : void
- close() : void
- comment() : void
- write() : void
- writeItem() : void
Properties
$indent
public
string
$indent
= ' '
$close
protected
bool
$close
$depth
protected
int
$depth
= 1
$stream
protected
resource
$stream
Methods
__construct()
public
__construct(string|resource $target) : void
Parameters
- $target : string|resource
__destruct()
public
__destruct() : void
close()
public
close() : void
comment()
public
comment(string $comment) : void
Parameters
- $comment : string
write()
public
write(array<string|int, mixed> $array) : void
Parameters
- $array : array<string|int, mixed>
writeItem()
protected
writeItem(string|int|null $key, mixed $value) : void
Parameters
- $key : string|int|null
- $value : mixed