Anvl
in package
Name-Value Language (ANVL).
Methods for creating and interacting with ANVL records.
Tags
Table of Contents
Properties
- $record : array<string|int, mixed>
- $lineLength : int
Methods
- __construct() : mixed
- add() : void
- Add element.
- record() : string
- ANVL record.
Properties
$record
public
array<string|int, mixed>
$record
$lineLength
protected
int
$lineLength
Methods
__construct()
public
__construct([int $lineLength = 72 ]) : mixed
Parameters
- $lineLength : int = 72
add()
Add element.
public
add(string $label[, string $value = '' ]) : void
Add a new data element to the ANVL record.
Parameters
- $label : string
-
1*<any CHAR, excluding control-chars and ":">
- $value : string = ''
-
text
record()
ANVL record.
public
record([bool $comments = false ]) : string
Parse anvl record.
Parameters
- $comments : bool = false
-
Set to true to output comments.