Home > PHP > Function > BBCode > bbcode_set_arg_parser()

bbcode_set_arg_parser()

bbcode_set_arg_parser - Attach another parser in order to use another rule set for argument parsing

Syntax

bool bbcode_set_arg_parser (resource $bbcode_container, resource $bbcode_arg_parser)

Arguments

  • bbcode_container - BBCode_Container resource, returned by bbcode_create().
  • bbcode_arg_parser - BBCode_Container resource, returned by bbcode_create(). It will be used only for parsed arguments

Description

Attaches another parser to the bbcode_container. This parser is used only when arguments must be parsed. If this function is not used, the default argument parser is the parser itself.

Version

PHP PECL bbcode >= 0.10.2

Return value

Returns TRUE on success or FALSE on failure.