PHP - Manual: bbcode_add_element
2024-04-28
(PECL bbcode >= 0.9.0)
bbcode_add_element — Adds a bbcode element
$bbcode_container
, string $tag_name
, array $tag_rules
) : boolAdds a tag to an existing BBCode_Container tag_set using tag_rules.
bbcode_container
BBCode_Container resource, returned by bbcode_create().
tag_name
The new tag to add to the BBCode_Container tag_set.
tag_rules
An associative array containing the parsing rules; see bbcode_create() for the available keys.
成功时返回 TRUE
, 或者在失败时返回 FALSE
。
官方地址:https://www.php.net/manual/en/function.bbcode-add-element.php