Category : transpose

I am using the function array_map to transpore arrays The point is that it does work for small arrays, but with the arrays getting bigger the functions returns the following errors: Warning: Only arrays and Traversables can be unpacked in /web/htdocs/www.mosaic-dev.it/home/IA/ia2.php on line 379 Warning: array_map() expects at least 2 parameters, 1 given in /web/htdocs/www.mosaic-dev.it/home/IA/ia2.php ..

Read more

I am new to php and have trouble with transposing the table and need your help! My table is: Project Date Hours Project1 07-12-2020 10 Project1 14-12-2020 10 Project1 21-12-2020 10 Project2 30-11-2020 8 Project2 14-12-2020 8 Project2 21-12-2020 8 The expected table is: Project 30-11-2020 07-12-2020 14-12-2020 21-12-2020 Project1 0 10 10 10 Project2 ..

Read more