Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $total = $end - $start;
- $count = intval($total / $thread);
- for ($i = 1; $i <= $thread; $i++) {
- $end = $start + $count - 1;
- /*$threads[] = new Thread(function () use ($start, $end) {
- $this->Thread($start, $end);
- });
- $threads[$i]->start();*/
- echo "{$start}-{$end} ";
- $start += $count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement