Re: Replacement Question.

From: Date: Wed, 20 Apr 2005 14:43:00 +0000
Subject: Re: Replacement Question.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-213509@lists.php.net to get a copy of this message
On Wednesday 20 April 2005 15:22, Bob Palma typed: > I have a database field that I need to read and do some conversion on. > Here is what the raw data from the database looks like: > > -- > 1084751309jpenaDisney Vignette Fleximon disk utilization > alert C:\ at 85%1084799703bpalmafixed.1084799713bpalmaclosed > -- Are the group delimiters different from the field delimiters? Ie, can you do: $array_of_groups = explode('group_delim', $in_string); foreach ($array_of_groups as $i) { $array_of_fields = explode('field_delim', $i); $date = date('m/j/y g:i:a', $array_of_fields[0]); print "$date {$a_o_f[1]}<br />{$a_o_f[2]}<br /><br />\n"; } YMMV of course. -- My mind not only wanders, it sometimes leaves completely.

« previous php.general (#213509) next »