Welcome Guest, Not a member yet? Register   Sign In
Little help with recursive function plz
#4

[eluser]marjune[/eluser]
$id_and_name[$idcounter] = $item->id;
$id_and_name[$idcounter+1] = $item->name ;

nope it doesn't return to because i often doing this stuff

Code:
array(
    '0' => array(
            '0' => 'id'
            ),
    '1' => array(
            '0' => 'name'
            )

);
as long as the $counter would increment after initiating the code below
Code:
return $childnodes[$counter] = $id_and_name;

@Jaketoolson: but the best is yours! Big Grin


Messages In This Thread
Little help with recursive function plz - by El Forum - 06-02-2011, 04:35 PM
Little help with recursive function plz - by El Forum - 06-02-2011, 07:35 PM
Little help with recursive function plz - by El Forum - 06-02-2011, 11:50 PM
Little help with recursive function plz - by El Forum - 06-03-2011, 12:44 AM
Little help with recursive function plz - by El Forum - 06-03-2011, 06:30 AM
Little help with recursive function plz - by El Forum - 06-10-2011, 03:40 AM
Little help with recursive function plz - by El Forum - 06-10-2011, 10:01 AM
Little help with recursive function plz - by El Forum - 06-11-2011, 01:53 AM
Little help with recursive function plz - by El Forum - 06-11-2011, 11:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB