phpBB

Development Wiki

Difference between revisions of "Function.strip bbcode"

From phpBB Development Wiki

m
m
 
(One intermediate revision by the same user not shown)
Line 34: Line 34:
 
<br>
 
<br>
 
[[Category:Functions_content]]
 
[[Category:Functions_content]]
 +
[[Category:functions]]
 
[[Category:BBCode]]
 
[[Category:BBCode]]
  
 
[[ja:Strip_bbcode]]
 
[[ja:Strip_bbcode]]

Latest revision as of 03:29, 24 March 2010

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