Function __global->parser_peek

Definitions

sources/webstandards_js_parse.php

  • Peek to find the next token.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$all boolean No No False N/A N/A Whether we want all the token parameters (as opposed to just the first)

Returns

  • All the token parameters, or just the first (null: error)
  • Type: ?mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Peek to find the next token.
 *
 * @param  boolean $all Whether we want all the token parameters (as opposed to just the first)
 * @return ?mixed All the token parameters, or just the first (null: error)
 */

function parser_peek(bool $all = false)