Parser
in package
View stream template parser class
Tags
Table of Contents
Methods
- parseArrays() : string
- Parse arrays in the template string
- parseConditionals() : string
- Parse conditionals in the template string
- parseScalars() : string
- Parse scalar values in the template string
Methods
parseArrays()
Parse arrays in the template string
public
static parseArrays(string $template, array<string|int, mixed> $data, string $output) : string
Parameters
- $template : string
- $data : array<string|int, mixed>
- $output : string
Return values
stringparseConditionals()
Parse conditionals in the template string
public
static parseConditionals(string $template, array<string|int, mixed> $data, string $output) : string
Parameters
- $template : string
- $data : array<string|int, mixed>
- $output : string
Return values
stringparseScalars()
Parse scalar values in the template string
public
static parseScalars(array<string|int, mixed> $data, string $output) : string
Parameters
- $data : array<string|int, mixed>
- $output : string