I am currently working on an online RPG for which I have created an inbuilt mail system. The problem is whenever the data from the mail will be shown and if it contains any PHP codes for RFI. I wont see my site for some time. So in short i want a small code to remove <?php ?> <script></script> etc etc codes from a variable where data will be stored say $data. I know we have to use preg_match but it wont work for me. Thanks