I want to make function that I can pass `id` to it , and it return an array with all parents,
for example :
function get_parent_ids(3) {
..
..
return (2, 1, 0)
}
so, how can I write this code ??
and what if I want to get the childs ?
for example :
function get_parent_ids(0) {
..
..
return (1, 2, 3)
}
Thanks for your time !!
Last edited by m_abdelfattah; 06-23-09 at 01:07 PM.