PHP code example of soneritics / pcntl
1. Go to this page and download the library: Download soneritics/pcntl 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/ */
soneritics / pcntl example snippets
(new \PCNTL\ThreadStart)->startAndWait(
(new \PCNTL\ThreadCollection)
->add(new ExampleClass('Test 1'))
->add(new ExampleClass('Test 2'))
->add(new ExampleClass('Test 3'))
->add(new ExampleClass('Test 4'))
->add(new ExampleClass('Test 5'))
);