$delimitersBeforeHandler
$delimitersBeforeHandler :
The "string" dynamic value extractor extracts a dynamic value without validating the extracted value.
__construct( $delimitersBeforeHandler, $delimitersAfterHandler)
$delimitersBeforeHandler | ||
$delimitersAfterHandler |
getDynamicValue(string $identifier, integer $startIndex) : string|null
Extracts the characters between a valid delimiter and up to the next delimiter. The ending delimiter can be any delimiter but the starting delimiter must match the defined "delimiterBeforeDynamicValue". The extracted value is not validated and is returned as is.
Some extractors may perform validation to ensure the extracted value is compliant.
string | $identifier | The identifier string to extract the dynamic value from |
integer | $startIndex | The character index in the identifier where the dynamic value starts |
The dynamic value string or null if no dynamic value found.
getDelimitersBeforeHandler()
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275
getDelimitersAfterHandler()
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275