Next Oct 19 PreviousGet 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()
Answer
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.