ID OID Title Description Option Price
01 01JAP Japanese Model Japanese Model of the Dave Smith Japanese "$3,000 "
02 02ENG English Model English Model of the dave Smith english "$1,000 "
The txt file, example shown above is delimited with /t.
I need the first line to become the keys of my array, so the ID or OID for example
"01" => array(
"ID" => "01",
"OID" => "01JAP",
"title" => "Japaneses model",
"description" => "Japanese Model of the Dave Smith ",
"option" => "Japanese",
"price" => 3000
),
I've read and tried to use explode() but was also looking at fgetcsv(), but haven't found any examples putting it into an array with keys provided by the delimited txt file.
any help would be greatly appreciated!