PHP code example of quorum / stream-functions
1. Go to this page and download the library: Download quorum/stream-functions library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
quorum / stream-functions example snippets
function faccept($stream, string ...$accept) : ?string
function fpeek($stream [, int $length = 1]) : string
function funtil($stream, string $until [, int $length = 0 [, ?string $buf = null]]) : bool