Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Closes an open file pointer
<?php fclose(resource $stream): bool
<?php         curl_setopt_array($ch, $options);

        curl_exec($ch);

        curl_close($ch);

        fclose($fp);

    }
<?php         curl_setopt_array($ch, $options);

        curl_exec($ch);

        curl_close($ch);

        fclose($fp);

    }
<?php         curl_setopt_array($ch, $options);

        curl_exec($ch);

        curl_close($ch);

        fclose($fp);

    }
<?php if ($_GET['stderr'] ?? false) {

    $stderr = fopen('php://stderr', 'a');

    fwrite($stderr, 'This is a test log into stderr');

    fclose($stderr);

}



if ($_GET['error_log'] ?? false) {
<?php if ($_GET['stderr'] ?? false) {

    $stderr = fopen('php://stderr', 'a');

    fwrite($stderr, 'This is a test log into stderr');

    fclose($stderr);

}



if ($_GET['error_log'] ?? false) {