PHP Prohibited Codes / Censorship Code

Discussion in 'Web Programming' started by adnanred, Apr 10, 2018.

  1. adnanred

    adnanred New Member

    Hello Everyone, My Php Script When you code it, you know Sometimes it is curses. Things are happening.

    Now How You Censor With A Simple Code Is Censored Her Demonstration. In other words, the System of Commenting We Do We Able to Enter the Wrong Text.

    Our Code is;

    <? php $ sozler = array ('soz1', 'soz2', 'soz3');
    $ text = "Curse, curse2,";
    $ text = str_replace ($ sozler, '***', $ text);
    echo $ text; ?>
    By using this code, we have been blocked in a simple way. Good forums.

Share This Page