mini\Parsing\GenericParser::parse()
Method
public
Signature
public function parse(string $input): mini\Parsing\NodeList
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$input |
string |
required | Documentation missing |
Returns
Documentation
Parse the given string into a NodeList tree.
The returned NodeList:
- can be cast to string to reconstruct the original input,
- is indexable via ArrayAccess (
$tree[1]), - is iterable (
foreach ($tree as $node)).