Re: [PHP] Making an array from delimited data
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Mon, 28 Apr 2008 15:11:40 -0500 (CDT)
On Mon, April 28, 2008 2:44 pm, Joe Harman wrote:
I have some data that I pull from a database that is in the following
format:
-------------------------------------------------------------
Gauge Style: Auto Meter Pro-Comp
Tachometer Usage: Standard
Gauge Series: Analog
Gauge Range: 0-11,000 rpm
Gauge Diameter (in): 5 in.
Gauge Diameter (mm): 127.00mm
Sweep: Full sweep
-------------------------------------------------------------
I want the array to end up like this
preg_match_all('/^([^:]:(.*)$/msiU', $db_data, $data);
var_dump($data);
--
Can you do me a favor?
Sign up for http://Facebook.com
Add http://apps.facebook.com/whereivebeen/
Review it, and let 'em know Rich sent you.
http://www.facebook.com/apps/application.php?id=2603626322
(Scroll down to the middle of the middle column)
Give it a 5-star rating please :-)
(If you can't go 5-star, email me to tell me why)
.
- References:
- Making an array from delimited data
- From: "Joe Harman"
- Making an array from delimited data
- Prev by Date: RE: [PHP] SMS Cellular Text Messaging
- Next by Date: Re: [PHP] OS need anything for mail() to work?
- Previous by thread: Re: [PHP] Re: Making an array from delimited data
- Next by thread: SEE MY LATE JANGO JIMMY(Snr) BUSINESS CARD,I SEND MY PICTURES WHEN I HEAR FROM YOU.
- Index(es):
Relevant Pages
|