Menu Samaritan's Purse

FGETS

Gets line from file pointer

SYNTAX

fgets ( resource $handle [, int $length ] ) : string

PARAMETERS

handle

The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).

length

Reading ends when length - 1 bytes have been read, or a newline (which is included in the return value), or an EOF (whichever comes first). If no length is specified, it will keep reading from the stream until it reaches the end of the line.

RETURN

Returns a string of up to length - 1 bytes read from the file pointed to by handle. If there is no more data to read in the file pointer, then FALSE is returned. If an error occurs, FALSE is returned.

EXAMPLES

HANDLE

Hello

HANDLE

<!doctype html>

LENGTH

Hello

LENGTH

<!doctype html>
<html>
<head>

    <title>osbo.com</title>
    <link href="/assets/css/" rel="stylesheet">
    <link href="/assets/ico/" rel="icon">
    <script src="/assets/js/"></script>

</head>
<body>

    <header>

        <a href="/"><img alt="osbo.com" id="header-logo" src="/assets/svg/Logo.svg" title="osbo.com"></a>
        <img alt="Menu" id="header-menu" onclick="menu()" src="/assets/svg/Menu.svg" title="Menu">
        <a href="https://rivchurch.com/" target="_blank"><img alt="Riverview Church" id="header-banner" src="/assets/svg/RiverviewChurch.svg" title="Riverview Church"></a>

    </header>
    <nav>

        <section>

            <a href="/Jesus/">Jesus</a>
            <a href="/Bible/">Bible</a>

        </section>
        <section>

            <a href="/htaccess/">.htaccess</a>
            <a href="/acme.sh/">acme.sh</a>
            <a href="/applications/">Applications</a>
            <a href="/css/">CSS</a>
            <a href="/favicon/">Favicon</a>
            <a href="/flash/">Flash</a>
            <a href="/html/">HTML</a>
            <a href="/js/">JS</a>
            <a href="/php/">PHP</a>
            <a href="/sketchup/">SketchUp</a>
            <a href="/unity/">Unity</a>
            <a href="/xcode/">Xcode</a>

        </section>
        <section>

            <a href="/about/">About</a>
            <a href="/terms/">Terms</a>

        </section>

    </nav>
    <main id="home">

        <section>

            <a href="/one-man-one-woman-one-lifetime/"><img alt="One Man. One Woman. One Lifetime." src="/assets/svg/OneManOneWomanOneLifetime.svg" title="One Man. One Woman. One Lifetime."></a>

        </section>

    </main>
    <footer>

        <a href="#" id="footer-copyright">&copy; 2020 Osbo Design</a>

    </footer>

</body>
</html>

PHP