WireTextTools::hasPlaceholders()

Does the string have any {placeholder} tags in it?

Available since version 3.0.126.

Usage

// basic usage
$bool = $wireTextTools->hasPlaceholders(string $str);

// usage with all arguments
$bool = $wireTextTools->hasPlaceholders(string $str, array $options = []);

Arguments

NameType(s)Description
$strstring
$options (optional)array

Return value

bool


WireTextTools methods and properties

API reference based on ProcessWire core version 3.0.251