Hi Walid
On 4/18/07, Walid GadElKarim <kurtubba gmail.com> wrote:
> no, that's not a question, I put the note as a question
followed by it's
> answer. Is there something wrong with the function?
If you want to merge an array: array_merge()
If you want to remove duplicates: array_unique()
If you want to re-index the array numerically:
array_values()
Combining it into function adds no value to the
documentation as this
is pretty obvious.
-Hannes
>
> php-notes lists.php.net wrote:
> > You are receiving this email because your note
posted
> > to the online PHP manual has been removed by one
of the editors.
> >
> > Read the following paragraphs carefully, because
they contain
> > pointers to resources better suited for requesting
support or
> > reporting bugs, none of which are to be included
in manual notes
> > because there are mechanisms and groups in place
to deal with
> > those issues.
> >
> > The user contributed notes are not an appropriate
place to
> > ask questions, report bugs or suggest new
features; please
> > use the resources listed on <http://php.net/support>
> > for those purposes. This was clearly stated in the
page
> > you used to submit your note, please carefully
re-read
> > those instructions before submitting future
contributions.
> >
> > Bug submissions and feature requests should be
entered at
> > <http://bugs.php.net/>.
a> For documentation errors use the
> > bug system, and classify the bug as
"Documentation problem".
> > Support and ways to find answers to your questions
can be found
> > at <http://php.net/support>
;.
> >
> > Your note has been removed from the online
manual.
> >
> > ----- Copy of your note below -----
> >
> > So we need to merge 2 arrays without having any
duplicates and the result array should be numircally
arranged?
> > <?php
> > function array_merge_nodup($arr1, $arr2){
> > return
array_values(array_unique(array_merge($arr1, $arr2)));
> > }
> > ?>
> >
> >
>
> --
> PHP Notes Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub
.php
>
>
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|