Check out Scrivo

Do you want to try out Scrivo? Then here's a demo for you that does not just get your feet wet but lets you plunge right in.

Contact us

For more information, please contact us. We're happy to help you out!

Next Oct 19 Previous

Get rid of those tags

You can directly strip all of the HTML and PHP tags when reading files. Which file function should you use to do so:

A: file_get_contents() with the strip_tags parameter set to true
B: file_strip_tags()
C: fgetss()
D: fgets()
E: freadclean()


file_strip_tags() and freadclean() are products of my imagination, and there is no strip_tags parameter for file_get_contents() I made that up too. So answers A,B and E are false.

fgets() will just get a line from a file pointer so this answer is not correct too.

It is fgetss() (fgets-stripped I assume) that wlll get a line from a file pointer while directly stripping out tags, so answer C is correct.