What is Filesystem fgetss in PHP
In this article I am going to explain about fgetss function in PHP.
PHP fgetss() function
The filesystem fgetss function is used to attempts to strip any html and PHP tags from the text it read.
Syntax of fgetss function
fgetss(filename, length,tags) |
Parameters in fgetss function
It have three parameter:
Parameter |
Description |
file |
It specifies the open file to check. |
length |
It specifies the no of byte to read. |
tags |
Specified tags will not be removed. |
Example of filesystem fgetss function
<html>
<body>
<?php
$file = fopen("C:\wamp\www\Dinesh\PhpIntro.txt","r");
echo fgetss($file,1024,"<h3>, <b>");
fclose($file);
?>
</body>
</html>
|
Output:
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here