Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #20198

Re: aggiungere solo i nuovi elementi ad un array

From "ciccio" <21669invalid@mynewsgate.net>
Newsgroups it.comp.www.php
Subject Re: aggiungere solo i nuovi elementi ad un array
Message-ID <2016011115423321669@mynewsgate.net> (permalink)
References <n702eb$mud$1@gioia.aioe.org> <n704j1$veb$1@gioia.aioe.org>
Date 2016-01-11 15:42 +0000

Show all headers | View raw


alex <1j9448a02@lnx159sneakemail.com.invalid> ha scritto:

CUT
> > Ma non è che esiste una funzione php nativa (già pronta) per fare quanto
> > illustrato?
> 
> forse basta solo
> 
> return $arr1 + $arr2;
> 
> possibile che sia così semplice, o mi sfugge qualcosa?
> o_O

Si può fare anche tramite funzioni native:

array_unique(array_merge($a, $b));

Back to it.comp.www.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

aggiungere solo i nuovi elementi ad un array alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-01-11 12:07 +0100
  Re: aggiungere solo i nuovi elementi ad un array alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-01-11 12:44 +0100
    Re: aggiungere solo i nuovi elementi ad un array "ciccio" <21669invalid@mynewsgate.net> - 2016-01-11 15:42 +0000
      Re: aggiungere solo i nuovi elementi ad un array alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-01-11 17:25 +0100
        Re: aggiungere solo i nuovi elementi ad un array bramante <bramante@yopmail.com> - 2016-01-11 23:39 +0100
          Re: aggiungere solo i nuovi elementi ad un array alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-01-12 09:02 +0100
            Re: aggiungere solo i nuovi elementi ad un array Leonardo Serni <lserni@gmail.com> - 2016-01-14 14:13 +0100
              Re: aggiungere solo i nuovi elementi ad un array alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-01-17 10:43 +0100
                Re: aggiungere solo i nuovi elementi ad un array Leonardo Serni <lserni@gmail.com> - 2016-01-17 18:38 +0100
                Re: aggiungere solo i nuovi elementi ad un array alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-01-18 10:51 +0100

csiph-web