Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PHP - Load Associative Array with text file Text file is delimited by | The Key names are: CODE|Description|Price|PartNumber text file sample: TIR|Tires|100|P2345 SPK|Spark Plugs|25|P6543

PHP - Load Associative Array with text file

Text file is delimited by "|"

The Key names are: CODE|Description|Price|PartNumber

text file sample:

TIR|Tires|100|P2345

SPK|Spark Plugs|25|P6543

AXL|Axle|2000|P9087

OIL|Oil|15|P4265

The associative array would look like this:

Product = array(

array(

"CODE"=>"TIR",

"Description"=>"Tires",

"Price"=>100,

"PartNumber"=>"P2345"

),

array(

"CODE"=>"SPK",

"Description"=>"Spark Plugs",

"Price"=>25,

"PartNumber"=>"P6543"),

array(

"CODE"=>"OIL"

"Description"=>"Oil"

"Price"=>15

"PartNumber"=>"P4265")

);

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

Students also viewed these Databases questions

Question

Can workers be trained in ethics? How? Defend your answer.

Answered: 1 week ago