"; else print "FALSE
"; } print "feof
"; } // read a line from file pointer, result is string, terminated by tab, followed by parse_str() compatible string // return array with former as $arr['name'] and latter as an assoc array $['data'] from parse_str() function &readTabParseString( $fp ) { $line = fgets( $fp ); $sections = explode( "\t", $line ); if( count( $sections ) < 1 ) return null; $sections[ 'name' ] = $sections[ 0 ]; if( count( $sections ) < 2 ) return $sections; $sections[ 'data' ] = parse_str( $sections[ 1 ] ); return $sections; } } ?>