trait Attributes (View source)

Methods

string
translate(string $text, string $pattern = '/[^{{\\}\\}]+(?=}})/')

No description

readAttr(string $name, $default = null)

No description

Details

string translate(string $text, string $pattern = '/[^{{\\}\\}]+(?=}})/')

No description

Parameters

string $text
string $pattern

Return Value

string

See also

https://stackoverflow.com/q/413071/2732184
https://www.regextester.com/97707

readAttr(string $name, $default = null)

No description

Parameters

string $name
$default