Function __global->parse_single_comcode_tag
Definitions
sources/comcode_compiler.php
- Parse a single tag. For use separately, not used by main parser.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $data | string | No | No | required parameter | N/A | N/A | The data being parsed |
| $tag | string | No | No | \w+ | N/A | N/A | The tag we're expecting to see here / a regexp |
Returns
- A map of parsed attributes
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Parse a single tag. For use separately, not used by main parser.
*
* @param string $data The data being parsed
* @param string $tag The tag we're expecting to see here / a regexp
* @return array A map of parsed attributes
*/
function parse_single_comcode_tag(string $data, string $tag = '\w+') : array
* Parse a single tag. For use separately, not used by main parser.
*
* @param string $data The data being parsed
* @param string $tag The tag we're expecting to see here / a regexp
* @return array A map of parsed attributes
*/
function parse_single_comcode_tag(string $data, string $tag = '\w+') : array

