Emisor de respuesta automática: Re: [PHP-DB] Lette rs loop

From: Date: Thu, 26 May 2005 06:13:06 +0000
Subject: Emisor de respuesta automática: Re: [PHP-DB] Lette rs loop
Groups: php.general 
Request: Send a blank email to php-general+get-215833@lists.php.net to get a copy of this message
Great!! It works pretty good!!! Thanks!! -------------------------- MIGUEL GUIRAO AGUILERA Logistica R8 - Telcel Tel: (999) 960.7994 Cel: 9931-60000 ----- Mensaje original ----- De: Stephen Johnson <php@thelonecoder.com> Fecha: Miércoles, Mayo 25, 2005 9:57 pm Asunto: Re: [PHP-DB] Letters loop > Then this is what I would suggest. > > $alph = array('*', 'A', 'B','C'...etc) ; > > $i=0; > Echo"<Select name=foo>"; > While($alph[$i]){ > echo"<option value=$alph[$i]>$alph[$i]"; > $i++; > } > Echo"</Select>"; > > On 5/25/05 9:54 PM, "MIGUEL ANTONIO GUIRAO AGUILAR" > <miguel.guirao@mail.telcel.com> wrote: > > > Yes, because I will create a <select> field within the for loop, > and the > > options of the select should be letters. > > > > -------------------------- > > MIGUEL GUIRAO AGUILERA > > Logistica R8 - Telcel > > Tel: (999) 960.7994 > > Cel: 9931-60000 > > > > ----- Mensaje original ----- > > De: Stephen Johnson <php@thelonecoder.com> > > Fecha: Miércoles, Mayo 25, 2005 9:49 pm > > Asunto: Re: [PHP-DB] Letters loop > > > >> > >> Why? > >> > >> If you need to do a loop that runs 26 times just set your high > >> value for 26. > >> > >> Is there some reason you need to use letters ? > >> > >> > >> > >> On 5/25/05 8:37 PM, "MIGUEL ANTONIO GUIRAO AGUILAR" > >> <miguel.guirao@mail.telcel.com> wrote: > >> > >>> Hi!! > >>> > >>> I wanna a do a for loop with letters, Is this possible? > >>> > >>> for ($i = 'A'; $i <= 'Z'; $i++){ > >>> // code > >>> } > >>> > >>> -------------------------- > >>> MIGUEL GUIRAO AGUILERA > >>> Logistica R8 - Telcel > >>> Tel: (999) 960.7994 > >>> Cel: 9931-60000 > >> > >> -- > >> Stephen Johnson > >> The Lone Coder > >> > >> stephen@thelonecoder.com > >> http://www.thelonecoder.com > >> > >> *Continuing the struggle against bad code* > >> -- > >> > >> > >> > > > > > > -- > Stephen Johnson > The Lone Coder > > stephen@thelonecoder.com > http://www.thelonecoder.com > > *Continuing the struggle against bad code* > -- > > >

« previous php.general (#215833) next »