You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns true if the stream is at the end of the stream.
returnbool
$resource = fopen(BOOTSTRAP_DIR . '/sample/shieldon_logo.png', 'r+');
$stream = newStream($resource);
$stream->seek(10);
if ($stream->eof()) {
echo'The position of the file pointer of the stream is at the end.';
} else {
echo'Not at the end.';
}
// Outputs: Not at the end.$stream->seek(15166);
if ($stream->eof()) {
echo'The position of the file pointer of the stream is at the end.';
} else {
echo'Not at the end.';
}
// Outputs: The position of the file pointer of the stream is at the end.