Variables

Поиск
Список
Период
Сортировка
От Julio Cuz, Jr.
Тема Variables
Дата
Msg-id 5.1.0.14.0.20020425085709.00aba940@mail.rccd.cc.ca.us
обсуждение исходный текст
Ответ на [newbie] simple browse / edit form in PHP  ("Jules Alberts" <julesa@arbodienst-limburg.nl>)
Ответы Re: Variables
Список pgsql-php
HI--
  • I have the following variables: $c1 thru $c10.
  • I also have a FOR loop like this:
        for($count = 0; $count < sizeof($artist); $count++)
                { echo "<i>$artist[$count]</i><br>"; }
        // $artist is a list of ten (10) artist's names.
  • What I'm trying to do is something like this:  Combine the variables with the info inside the FOR loop:
        for($count = 0; $count < sizeof($artist); $count++)
                {  //Trying to assign the value of $c1, $c2, $c3, etc. using the value of the variable $count.
                   //But so far, it only processes the value of $count alone, and it ignores $c
                //The line below should read like this:  $c1 = $artist[0], next line:  $c2 = $artist[1], etc.
                        $c . $count+1 = $artist[$count];
                }

Help!!!

Julio Cuz, Jr.
Riverside Community College
jcuz@rccd.cc.ca.us

В списке pgsql-php по дате отправления:

Предыдущее
От: angelo.rigo@globo.com
Дата:
Сообщение: printer friendly version
Следующее
От: "Papp, Gyozo"
Дата:
Сообщение: Re: printer friendly version