Home > PHP > Function > BBCode > bbcode_parse()

bbcode_parse()

bbcode_parse - Parse a string following a given rule set

Syntax

string bbcode_parse (resource $bbcode_container, string $to_parse)

Arguments

  • bbcode_container - BBCode_Container resource returned by bbcode_create().
  • to_parse - The string we need to parse.

Description

This function parse the string to_parse following the rules in the bbcode_container created by bbcode_create()

Version

PHP PECL bbcode >= 0.9.0

Return value

Returns TRUE on success or FALSE on failure.