Documentation

Parser
in package

View stream template parser class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
3.3.0

Table of Contents

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
string

parseConditionals()

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
string

parseScalars()

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
Return values
string

Search results