Re: Array problem

From: Date: Wed, 27 Oct 2010 16:08:50 +0000
Subject: Re: Array problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-309109@lists.php.net to get a copy of this message
On 27 October 2010 16:53, Don Wieland <donw@dwdataconcepts.com> wrote: > Hi. I have question regarding an array: > > This is a print of a POST array from a form of mine: > > Array > ( >    [SelVol] => Array >        ( >            [0] => ohontheledge@yahoo.com >            [1] => donw@pointmade.net >        ) > >    [id_Event] => 10 >    [sDate] => 10/31/2010 >    [Note] => FFF > ) > > I am trying to implode the Sel_Vol and it is not giving me the results I > want. > > $BCC = implode(",", $_POST['Sel_Vol']); > > I want a comma separated result = > > $BCC = "ohontheledge@yahoo.com,donw@pointmade.net"; > > Little help - pretty please > > Don Wieland [2010/10/27 16:37:28] [Z:\] [\\richardquadling\scratch$ ] >php <?php $_POST = Array ( 'SelVol' => Array ( 'ohontheledge@yahoo.com', 'donw@pointmade.net', ), 'id_Event' => 10, 'sDate' => '10/31/2010', 'Note' => 'FFF', ); echo implode(',', $_POST['SelVol']); ?> outputs ... ohontheledge@yahoo.com,donw@pointmade.net As Nicholas pointed out, the extra underscore in the key is the issue. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

« previous php.general (#309109) next »