Home > PHP > Function > BBCode > bbcode_set_flags()

bbcode_set_flags()

bbcode_set_flags - Set or alter parser options

Syntax

bool bbcode_set_flags (resource $bbcode_container, int $flags, int $mode)

Arguments

  • bbcode_container - BBCode_Container resource, returned by bbcode_create().
  • flags - The flag set that must be applied to the bbcode_container options
  • mode - One of the BBCODE_SET_FLAGS_* constant to set, unset a specific flag set or to replace the flag set by flags.

Description

Set or alter parser options

Version

PHP PECL bbcode >= 0.10.2

Return value

Returns TRUE on success or FALSE on failure.