Documentation

Generate
in package

Write PHP arrays to a file.

Table of Contents

Properties

$indent  : string
$close  : bool
$depth  : int
$stream  : resource

Methods

__construct()  : void
__destruct()  : void
close()  : void
comment()  : void
write()  : void
writeItem()  : void

Properties

Methods

__construct()

public __construct(string|resource $target) : void
Parameters
$target : string|resource

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
On this page

Search results