phpBB

Development Wiki

Difference between revisions of "Function.strip bbcode"

From phpBB Development Wiki

(New strip_bbcode function page)
(No difference)

Revision as of 23:14, 22 October 2008

strip_bbcode - Strips all BBcode from a text string and returns the plain content.

Description

void strip_bbcode ( string &$text [, $uid ])
Strips BBCode from a string and returns the plain text.

Parameters

Parameter Default Description
text Required The text string
uid '' (optional) BBCode UID which helps the function locate the BBCode to strip from the text string


Return Values

Returns the $text variable by reference.

Examples

Example #1 A Simple Example

strip_bbcode($text_only_message$row['bbcode_uid']);

See Also