|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-12 13:01 UTC] laruence@php.net
[2012-08-12 13:01 UTC] laruence@php.net
[2012-08-12 18:38 UTC] info at ludwig-gramberg dot de
[2021-02-26 18:02 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2021-02-26 18:02 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |
Description: ------------ Idea: an easy to use parallel processing function for arrays (or any iterable data structure). Example: <?php $arr = array(1, 2, 3, 4); array_process_parallel($arr, function($a) { return $a+5; }); ?> Now $arr would contain the following: [6, 7, 8, 9]. The values are written back to $arr. The parameter is called by reference. Also a array_parallel_reduce would be nice. Test script: --------------- $arr = array(1, 2, 3, 4); array_process_parallel($arr, function($a) { return $a+5; }); Expected result: ---------------- [6, 7, 8, 9]