Get a line, with HTML and PHP tags removed, from an open file in PHP

Description

The following code shows how to get a line, with HTML and PHP tags removed, from an open file.

Example


<?php/* w  w  w.j  av a2s  .  c  om*/
    $file = fopen("a.php","r");
    echo fgetss($file);
    fclose($file);
?>




















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip