Untitled
Anonymous
plain_text
03/11/2022 8:30 AM
488 B
17
Indexable
$header = 'SubscriberID:';
$stdin = fopen('php://stdin', 'r');
while ( $stdin && !feof( $stdin ) )
{
$line = fgets( $stdin );
$tmp .= $line;
if ( substr( $line, 0, strlen( $header ) ) === $header )
{
list( $report_subscriber_id, $code, $account_code ) = explode( ';', trim( substr( $line, strlen( $header ) ) ) );
break;
}
}Editor is loading...