Re: Stop the commas!!! ( or knowing when you're at the end of an array )
- From: Geoff Berrow <blthecat@xxxxxxxxxxx>
- Date: Fri, 29 Dec 2006 00:49:16 +0000
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/
.
- References:
- Stop the commas!!! ( or knowing when you're at the end of an array )
- From: phpCodeHead
- Stop the commas!!! ( or knowing when you're at the end of an array )
- Prev by Date: Need Consultant to Help with CakePHP
- Next by Date: Re: newbie with multiple images upload question
- Previous by thread: Re: Stop the commas!!! ( or knowing when you're at the end of an array )
- Next by thread: I cannot install anything with pear.
- Index(es):
Relevant Pages
|