Re: [PHP] Re: Making an array from delimited data
- From: joe@xxxxxxxxxxxxxxxxxx ("Joe Harman")
- Date: Mon, 28 Apr 2008 14:58:33 -0500
this is the complete data that was initially submitted through a textarea field.
On Mon, Apr 28, 2008 at 2:56 PM, Shawn McKenzie <nospam@xxxxxxxxxxxxx> wrote:
Joe Harman wrote:
I have some data that I pull from a database that is in the followingformat:
line?
-------------------------------------------------------------
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
--------------------------------------------------------------------------
$data['Gauge Style'] = Auto Meter Pro-Comp
$data['Tachometer Usage'] = Standard
$data['Gauge Series'] = 0-11,000 rpm
I know I can use explode on on set of data... but up do you do it line by
Thanks for your help
The following is one field from the db, or each line is a field or what?
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
-Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Joe Harman
SCP Performance Parts Warehouse
3475 High Ridge Blvd
High Ridge, MO 63049
Office : (636) 677-1320
Cell : (269) 277-0717
http://www.scpracingparts.com
.
- Follow-Ups:
- Re: [PHP] Re: Making an array from delimited data
- From: "Nathan Nobbe"
- Re: [PHP] Re: Making an array from delimited data
- References:
- Making an array from delimited data
- From: "Joe Harman"
- Re: Making an array from delimited data
- From: Shawn McKenzie
- Making an array from delimited data
- Prev by Date: Re: Making an array from delimited data
- Next by Date: SEE MY LATE JANGO JIMMY(Snr) BUSINESS CARD,I SEND MY PICTURES WHEN I HEAR FROM YOU.
- Previous by thread: Re: Making an array from delimited data
- Next by thread: Re: [PHP] Re: Making an array from delimited data
- Index(es):
Relevant Pages
|