mattjtayl Posted October 27, 2007 Share Posted October 27, 2007 Ok for work I have to create a multidimensional array that data for a bank will be stored in then from that array I will print it. My boss said to first program it like i am recieving the array. Then later he will have me create the array. It goes something like this. How can I make this into a multi-dimensional array? Any help would really be great! Order multidimensional Array I will recieve will be arranged in and the printed like this. PPD entries -File Header Record ----Company/Batch Header Record(Batch#1) --- ------#1 Entry Detail Record (and optional addenda Record) ----------#2 Entry Detail Record ----------- #n entry detail Record. ----- company/batch control record --------company/Batch Header Record(Batch#2 through n) -------------- -#1 Entry Detail Record( and optional Addenda Record) -------------- - #2 Entry Detail Record - -------------- #n Entry Detail Record ------- company/Batch Control Record -File Control Record there can be X amount of batches and X amount of entry details Each record has a format like this File header: field: 1 somecode = '5' position(01) field: 2 somcode='ma' positions(02-04) field 3 somecode ='blaht' position(05-10) field 4 somecode = xxxxxxxxxx position(11-21) . . . field 13 ........................................................... Company batch header: field: 1 somecode = '7' position(01) field: 2 somcode='ma' positions(02-04) field 3 somecode ='blaht' position(05-10) field 4 somecode = xxxxxxxxxx position(11-21) . . . field 11 ........................................................... Entry Detail Record field: 1 somecode = '9' position(01) field: 2 somcode='ma' positions(02-04) field 3 somecode ='blaht' position(05-10) field 4 somecode = xxxxxxxxxx position(11-21) . . . field 15 ........................................................... entry addenda record field: 1 somecode = '11' position(01) field: 2 somcode='ma' positions(02-04) field 3 somecode ='blaht' position(05-10) field 4 somecode = xxxxxxxxxx position(11-21) . . . field 9 ........................................................... Company batch control record field: 1 somecode = '2' position(01) field: 2 somcode='ma' positions(02-04) field 3 somecode ='blaht' position(05-10) field 4 somecode = xxxxxxxxxx position(11-21) . .etc... on and on ... . Link to comment https://forums.phpfreaks.com/topic/74952-printing-from-a-multi-dimensional-array-help-please/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.