PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

bbcode_add_element> <aspell_suggest
Last updated: Thu, 23 Aug 2007

view this page in

VII. BBCode Functions

Introduction

This extension aims to help parse BBCode text in order to convert it to HTML or another markup language. It uses one pass parsing and provides great speed improvement over the common approach based on regular expressions. Further more, it helps provide valid HTML by reordering open / close tags and by automatically closing unclosed tags.

Installation

Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » http://pecl.php.net/package/bbcode

Runtime Configuration

This extension has no configuration directives defined in php.ini.

Resource Types

One resource is used in the BBCode extension: a BBCode_Container returned by bbcode_create().

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

BBCODE_TYPE_NOARG (integer)
This BBCode tag does not accept any arguments.
BBCODE_TYPE_SINGLE (integer)
This BBCode tag does not have a corresponding close tag.
BBCODE_TYPE_ARG (integer)
This BBCode tag need an argument.
BBCODE_TYPE_OPTARG (integer)
This BBCode tag accept an optional argument.
BBCODE_TYPE_ROOT (integer)
This BBCode tag is the special tag root (nesting level 0).
BBCODE_FLAGS_ARG_PARSING (integer)
This BBCode tag require argument sub-parsing (the argument is also parsed by the BBCode extension).
BBCODE_FLAGS_CDATA_NOT_ALLOWED (integer)
This BBCode Tag does not accept content (it voids it automatically).

Table of Contents

bbcode_add_element — Adds a bbcode element
bbcode_create — Create a BBCode Resource
bbcode_destroy — Close BBCode_container resource
bbcode_parse — Parse a string following a given rule set


add a note add a note User Contributed Notes
BBCode Functions
There are no user contributed notes for this page.

bbcode_add_element> <aspell_suggest
Last updated: Thu, 23 Aug 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites