Problem with function in array (PHP)

Discussion in 'PHP' started by virtualmisc, Mar 29, 2010.

  1. #1
    Hello Friends

    I Have a Problem in my Function. I have created a Recursion Function in PHP and also Created an Array.
    I am having trouble in storing this Recursion Function Value in Array.
    Can anyone help me with this.


    Thanks
     
    virtualmisc, Mar 29, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    Reply with this 'recursive function', then we can help you better :)
     
    danx10, Mar 29, 2010 IP
  3. meloncreative

    meloncreative Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Put the array into a session to store and retrieve? either that or pass the array as a parameter of the function
     
    meloncreative, Mar 29, 2010 IP
  4. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Either pass by reference OR return the output of the function and assign it into array OR store array at some global location which can be accessed easily in any of the recursion call.
     
    mastermunj, Mar 29, 2010 IP