|
Posted by Duncan Hill on 04/20/05 17:43
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.
Navigation:
[Reply to this message]
|