VarUtils
in package
Variable utilities.
Tags
Table of Contents
- getCombinations() : mixed
- resolve() : string
- Resolves variable placeholders.
- __construct() : mixed
Methods
getCombinations()
public
static getCombinations(array<string|int, mixed> $vars, array<string|int, mixed> $values) : mixed
Parameters
- $vars : array<string|int, mixed>
- $values : array<string|int, mixed>
Return values
mixed —resolve()
Resolves variable placeholders.
public
static resolve(string $template, array<string|int, mixed> $vars, array<string|int, mixed> $values) : string
Parameters
- $template : string
-
A template string
- $vars : array<string|int, mixed>
-
Variable names
- $values : array<string|int, mixed>
-
Variable values
Tags
Return values
string —The resolved string
__construct()
private
final __construct() : mixed