Function __global->parser_peek_dist
Definitions
sources/webstandards_js_parse.php
- Peek to find the next token after a distance.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $d | integer | No | No | required parameter | N/A | N/A | The distance |
| $p | ?integer | No | No | Null | N/A | N/A | Whether to start looking from (null: current position in parse) |
Returns
- The first token parameter (null: error)
- Type: ?mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Peek to find the next token after a distance.
*
* @param integer $d The distance
* @param ?integer $p Whether to start looking from (null: current position in parse)
* @return ?mixed The first token parameter (null: error)
*/
function parser_peek_dist(int $d, ?int $p = null)
* Peek to find the next token after a distance.
*
* @param integer $d The distance
* @param ?integer $p Whether to start looking from (null: current position in parse)
* @return ?mixed The first token parameter (null: error)
*/
function parser_peek_dist(int $d, ?int $p = null)

