fgetc

It returns character from file pointer

Example

<?php

$fp = fopen(‘test.txt’, ‘r’);

while (!feof($fp)) {

echo fgetc($fp);

}

fclose($fp);

?>

Share