Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
$a ="13:31.0";
$b="returnError,returnError,invoke,returnResultLast,returnResultLast";
$c="00d8cd29,00d8cd37,00d8cd35,00d8cd34";
$aA= explode(";",$a);
$bA= explode(";",$b);
$cA= explode(";",$c);
$full= array();
for($i=0;$i<sizeof($aA);$i++){
$scratchB=explode(',',$bA[$i]);
$scratchC=explode(',',$cA[$i]);
if( sizeof($scratchB) != sizeof($scratchC) ){
for($k=0;$k<sizeOf($scratchB);$k++){
if($scratchB[$k]=="invoke"){ unset($scratchB[$k]); }
if( sizeof($scratchB) == sizeof($scratchC) ){ break; }
}
}
for($k=0;$k<sizeOf($scratchB);$k++){
$full[]="".$aA[$i]."\t".$scratchB[$k]."\t".$scratchC[$k]."";
}
}
foreach($full as $row){echo $row."\n";}
?>