Devam Ediyor

502770 Process delimeted text file into a json formated text files

I need to read in data like this from a text file....

SUBJECT|COURSE|SECTION|CRN|CRS TITLE|PTRM CODE|BEG DATE|END DATE|CR HR 1|CR HR 2|MAX ENRL|ENROLL|CAMPUS|INSM CODE|SUNDAY|MONDAY|TUESDAY|WEDNESDAY|THURSDAY|FRIDAY|SATURDAY|BEGIN TM|END TM|BUILDING|ROOM NUM|INST LAST|INST 1ST|

AA|106|01|81013|Design Principles|1|27-AUG-11|15-DEC-11||3|30|2|65M|CON||M||W||||1600|1715|OMN|B109|Wallace|Lewis|

AA|106|02|81014|Design Principles|1|27-AUG-11|15-DEC-11||3|30|13|65M|CON|||T||R|||1230|1345|OMN|B109|Wallace|Lewis|

AA|106|10N|81017|Design Principles|1|27-AUG-11|15-DEC-11||3|30|2|65M|CON|||||R|||1730|2010|OMN|B109|||

AA|107|01|80903|Introduction to Illustration|1|27-AUG-11|15-DEC-11||3|20|5|65M|CON||M||W||||0900|1015|OMN|B109|||

and output it like this to a text file...

{

"identifier": "id", "label": "subject", "items":

[

{ "id":"*", "subject":"All" },

{ "id":"AE", "subject":"Aesthetics (AE)" },

{ "id":"BU", "subject":"Accounting (BU)" },

{ "id":"AC", "subject":"Air Conditioning Refrig (AC)" },

{ "id":"HP", "subject":"American Sign Language (HP)" },

{ "id":"ART", "subject":"Art (ART)" },

{ "id":"ASTR", "subject":"Astronomy (ASTR)" },

I need this done rather quickly and would like it to be done in PHP on the command line.

Beceriler: Her şey Kabul, PHP

Daha fazlasını görün: room files, on line accounting, line illustration art, illustration friday, cr&r, cr design, c language introduction, a line art, ae con, accounting principles, text file, sign language, php json , JSON PHP, inst, data to text file, CRS, Conditioning, Campus, astronomy, Astr, air conditioning, air text, sign label, accounting course

İşveren Hakkında:
( 35 değerlendirme ) Chattanooga, United States

Proje NO: #2248692