isaac_cm Posted December 20, 2006 Share Posted December 20, 2006 I need to pass 2D array of (name,value) pairs to a function as a parameter , and in the function loop through this array to get all names and valuesthe array limit is unknown, what should I do ?thanks Link to comment https://forums.phpfreaks.com/topic/31415-array-paramter-in-a-function/ Share on other sites More sharing options...
kenrbnsn Posted December 20, 2006 Share Posted December 20, 2006 Use either a foreach or for loop to loop through the array. It's no different than any other array in PHP.Ken Link to comment https://forums.phpfreaks.com/topic/31415-array-paramter-in-a-function/#findComment-145429 Share on other sites More sharing options...
isaac_cm Posted December 20, 2006 Author Share Posted December 20, 2006 thanks , could you please tell me how to declare this array as a function parameter and how to pass values to itthanks Link to comment https://forums.phpfreaks.com/topic/31415-array-paramter-in-a-function/#findComment-145464 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.