Re: Broken data within an Array

From: Date: Tue, 31 Aug 2004 23:54:08 +0000
Subject: Re: Broken data within an Array
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195357@lists.php.net to get a copy of this message
Jason Thanks for the response. I have this: $DateAdvertised=$row["DateAdvertised"]; $DateAdvertisedBroken = explode("-", $DateAdvertised); So I can easily use this in my table: $result[DateAdvertised] But not this for some reason: $DateAdvertisedBroken[n] Any ideas...? -- ----------------------------- Michael Mason Arras People www.arraspeople.co.uk ----------------------------- "Jason Barnett" <jasbarne@indiana.edu> wrote in message news:20040831194844.50855.qmail@pb1.pair.com... > Harlequin wrote: > > > Hi all. > > > > Having a problem echoing a broken date. Here's where I'm at: > > > > $DateAdvertisedBroken = explode("-", $DateAdvertised); > > So this contains an array of (year, month, day) or something similar? You > should be able to grab the values here if that's the case. > > > > > later, in a table, I use: > > > > $result[DateAdvertised] > > > > How can I change this so I can call the broken date...? > > implode(' ', $DateAdvertisedBroken) > or use &nbsp; if needed. > Or did you mean $DateAdvetisedBroken[2] ?

« previous php.general (#195357) next »