You are here: Re: [PHP] Replacement Question. « PHP « IT news, forums, messages
Re: [PHP] Replacement Question.

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация