示例#1
0
        }
    }
    $_EDIFACT_ = 1;
}
function microtime_float()
{
    list($usec, $sec) = explode(" ", microtime());
    return (double) $usec + (double) $sec;
}
$time_start = microtime_float();
$E = new EDIFACT();
$E->DisplayClassEdifactInformation();
$E->LoadFile("EDIFACT.txt");
$OK = $E->FindUNH(1);
echo "FIND UNH(1):" . $OK . "<BR>";
$MessageType = $E->GetMessageType();
echo "Message Type:" . $MessageType . "<BR>";
$MessageVersion = $E->GetMessageVersion();
echo "Message Version:" . $MessageVersion . "<BR>";
$MessageRelease = $E->GetMessageRelease();
echo "Message Release:" . $MessageRelease . "<BR>";
$MessageAgency = $E->GetMessageAgency();
echo "Message Agency:" . $MessageAgency . "<BR>";
$MessageAssociation = $E->GetMessageAssociation();
echo "Message Association:" . $MessageAssociation . "<BR>";
$E->LoadMessage($MessageType, $MessageVersion, $MessageRelease);
// echo "TABLE MESSAGE INFO<BR>";
// print_r($E->TABLE_MESSAGE);
echo "**** VALIDATION MESSAGE *** <BR>";
// $E->ValidMessage();
echo "**** FIN VALIDATION MESSAGE *** <BR>";