Navigation

Search

censorText

Description

This function handles all the censored words.

Syntax

string censorText (string &$text)



Parameter &$text

Expected type: String
Description: The text to censor



Return value

Expected type: String
Description: Returns either the censored version of the text or the original text if censored words have been disabled or there are no censored words entries.


Notes

  • Function is called by reference - if you wish to apply other functions to the censored text, you must first assign this to a variable and then perform the other functions on the variable.
View all versions of this function