PHP code example of sqonk / phext-detach
1. Go to this page and download the library: Download sqonk/phext-detach 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/ */
sqonk / phext-detach example snippets
while ($value = $chan->get()) {
// process value.
}
while (($value = $chan->get()) !== CHAN_CLOSED) {
// process value.
}
// function call..
foreach ($chan->incoming() as $value) {
// process value.
}
// or directly passing the object as the iterator..
foreach ($chan as $value) {
// process value.
}