i need a script which to delete the bbcode from my messages..
let's say that i have:
Code: Select all
[b]sample text[/b]i need to return only
Code: Select all
sample textso far, i thought i might use this:
Code: Select all
$de_inlocuit = array("[b]", "[/b]", "[u]", "[/u] . and so on ");
$post_curat = str_replace($de_inlocuit, "", $row_post['pagetext']);how can i delete all the code between "[" "]" ?
thanks..