Re: Array help

From: Date: Thu, 08 Aug 2002 08:47:34 +0000
Subject: Re: Array help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-111613@lists.php.net to get a copy of this message
$all = join(',', $hours); echo $all; <rdkurth@starband.net> wrote in message news:128381180578.20020808003333@starband.net... > I need to pull the data out of an array the comes from a form where > the user can have multiple selections. > > I am pulling the data out of the array like this > > for($i=0;$i<count($hours);$i++){ > $value= $hours[$i]; > echo $value\n; } > This work just fine for getting the values out like this > 01 > 02 > 13 > 14 > But I want them all in one variable like this > 01,02,13,14 > > > -- > Best regards, > Richard Kurth > mailto:rdkurth@starband.net >

« previous php.general (#111613) next »