php çoklu dizi birleştirmek istiyorum

0 Cevap php

ben bu tip yapmak istiyorum

in my form i have check box array and the function i want to call as the size of check box array, now all is ok simple one time calling.

but i want to call the function as above, and store the function return value in one array

as function return array so i want to do like this

for user id 1->callfunction return array
user id 2->callfunction return array .... ....

i array_push kullanılan çalışın ama ben herhangi bir sonuç almaz

İşte benim kod

$track = array();

for($i=0;$i<sizeof($usr);$i++)
        {
            if (!empty($start) and !empty($end))
            {

                $track_e = $tracker->getProjectTrack($id, $usr[$i], $taski, $start, $end);

                //$track = $tracker->getProjectTrack($id, $usr, $taski, $start, $end);
            }

            $track=array_push($track,$track_e);

        }

0 Cevap