Hi,
I'm using PHP 5. I have
$this->m_pages_arr = array_merge($th is->m_pages_arr, $p_file_obj-
in which "$this->m_pages_arr" is an array and $p_file_obj is an object
I defined. What I would like is to merge references to objects in the
"$p_file_ob j->m_page_objs_ar r" array instead of copies of objects,
which seems to be what is happening now.
Any advice on how to merge the references? Maybe array_merge is not
the right function?
Thanks, - Dave
I'm using PHP 5. I have
$this->m_pages_arr = array_merge($th is->m_pages_arr, $p_file_obj-
>m_page_objs_ar r);
I defined. What I would like is to merge references to objects in the
"$p_file_ob j->m_page_objs_ar r" array instead of copies of objects,
which seems to be what is happening now.
Any advice on how to merge the references? Maybe array_merge is not
the right function?
Thanks, - Dave
Comment