Share on Google+Share on Google+

PHP fpassthru() function and example

In this section of PHP tutorial we will see the use of fpassthru() function and its related example

int fpassthru ( file_handle)

  • It reads the rest of the file contents from the current pointer. to the EOF.
  • It returns the no of character to the output console
  • If some function  has read the  file then it will not  read all, it will read only the rest.
  • To read the whole file use the rewind() function

Example of PHP fpassthru() Function

Code for PHP fpassthru() Function
    echo $data1;

second line third line fourth line



Posted on: October 29, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.