censorwords ( $text )
This is the text which should be censored
censorwords() will return the string $text censored
// In this example we have added the word apple, orange and banana as offencive words and set replacement as ****.
$text = "The apple, orange and banana are all fruits.";
Output from the Example
The ****, **** and **** are all fruits.