in reply to Splitting Array with Variable Spaces

Note that you might have a problem with split() if the fields contain white-spaces.

It seems like your table is very regular and thus it might be better to use substr(). This will probably be faster.

if( substr($item, $start_col1, $width1) < substr($item, $start_col2, $width2)) { .... }