Re: Stop the commas!!! ( or knowing when you're at the end of an array )



Message-ID: <1167333440.750843.27670@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> from
phpCodeHead contained the following:

foreach ($cities as $city) {
echo $city . ", ";
}

echo implode(",",$cities).".";

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
.



Relevant Pages

  • Re: random without replacement
    ... It's only Usenet, no one dies. ... My opinions, not the committee's, mine. ... Simple RFDs http://www.ckdog.co.uk/rfdmaker/ ...
    (comp.lang.php)
  • Re: Nice rucksack
    ... > It's only Usenet, no one dies. ... > My opinions, not the committee's, mine. ... > Simple RFDs http://www.ckdog.co.uk/rfdmaker/ ...
    (uk.rec.walking)
  • Re: Case sensitivity in programming languages.
    ... It's only Usenet, no one dies. ... My opinions, not the committee's, mine. ... Simple RFDs http://www.ckdog.co.uk/rfdmaker/ ...
    (comp.lang.php)
  • Re: using echo but need something to execute php code
    ... It's only Usenet, no one dies. ... My opinions, not the committee's, mine. ... Simple RFDs http://www.ckdog.co.uk/rfdmaker/ ...
    (comp.lang.php)
  • Re: Recky on the Wrekin
    ... It's only Usenet, no one dies. ... My opinions, not the committee's, mine. ... Simple RFDs http://www.ckdog.co.uk/rfdmaker/ ...
    (uk.rec.walking)