![]() |
How do I do this in PHP?
I am trying to parse a line in a document.
The line is always 64 characters long. Always divided into 8 calumbs of data with trailing spaces to fill the remaining 8 characters. I need to parse the line and store the 8 pieces of information into an database. I know I can create my own function with seeks, rtrims, etc. My question is this: is there a built in function in PHP (similar to the SSCANF() function) that will scan through a line and divide it into chunks based on fixed character lengths? Shan |
You can do this:
PHP Code:
|
All times are GMT. The time now is 07:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|