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
Name | Type(s) | Description |
---|---|---|
str | string | |
options (optional) | array |
Return value
bool
WireTextTools methods and properties
API reference based on ProcessWire core version 3.0.236