Documentation

VarUtils
in package

Variable utilities.

Tags
author

Johannes M. Schmitt schmittjoh@gmail.com

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
throws
InvalidArgumentException

If there is a variable with no value

Return values
string

The resolved string

__construct()

private final __construct() : mixed
Return values
mixed

Search results