List Info

Thread: Re: note 74534 rejected and deleted from function.array-merge by notes editor bjori




Re: note 74534 rejected and deleted from function.array-merge by notes editor bjori
user name
2007-04-17 17:28:09
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?

php-noteslists.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/>. 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


Re: Re: note 74534 rejected and deleted from function.array-merge by notes editor bjori
user name
2007-04-18 04:13:51
Hi Walid

On 4/18/07, Walid GadElKarim <kurtubbagmail.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-noteslists.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/>. 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


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )