ZCE # Week # 270


Which function retrieves only the texts from an HTML file and leaves all HTML and PHP tags?

A. file_put_contents()
B. file_get_contents()
C. fgetss()
D. fgets()


file_put_contents --  Writes a string to a file
file_get_contents --  Reads entire file into a string
fgetss -- Gets line from file pointer and strip HTML tags
fgets -- Gets line from file pointer

Answer:  C