Home >> PHP >> fgetss() function in PHP

fgetss() function in PHP

The fgetss() function returns a line from file pointer and strip HTML tags.

This function returns false on failure.

Syntax

fgetss(file,length,tags)

Example

$file = fopen("content.txt","r");
echo fgetss($file);
fclose($file);

Output

This is first paragraph.

Post Your Comment

Next Questions
file_put_contents() function
fileatime() function
filectime() function
filemtime() function
fileowner() function
fileperms() function
filesize() function
filetype() function
flock() function
fputs() function
fscanf() function
fstat() function
ftell() function
ftruncate() function
is_executable() function
is_file() function
is_link() function
is_readable() function
is_writable() function
link() function
linkinfo() function
pathinfo() function
readfile() function
readlink() function
realpath() function

Copyright ©2022 coderraj.com. All Rights Reserved.