Learn more about the hasHeaderRow() method in the tutorial below. However, if I do not have time or inclination to add a feature you want, you can always fork this project to add the feature yourself. Contact me to explain what you have in mind, and we can discuss it. It depends on the specifics of the feature, whether it makes sense to be part of this toolkit, and how difficult it would be to implement. This toolkit is intended for local files, not remote ones.Ī. CAN THIS TOOLKIT WORK WITH REMOTE FILES OVER HTTP:// OR HTTPS://?Ī. I decided to share it because I'd like to others improve upon my code and take it in directions that never would have occurred to me. I wanted to learn more about text-processing functions within PHP and wanted reusable code to deal with Fixed Width Text Files. WHY DID YOU MAKE THIS WHEN THERE ARE ALREADY OTHER TOOLS/PRODUCTS AVAILABLE?Ī. I created the "Fixed Width Text File Toolkit" so I could quickly and easily analyze a fixed width text file, grab the field names from the header row, "automagically" (sic) determine the starting character position for each data field, and then convert that data into a multi-dimensional array. * loading the data into an array to encode/transform it to a more usable format * do a series of string splits at a, b, c, d, etc. * grab the field names from the header row
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |