3v4l.org

run code in 300+ PHP versions simultaneously
<?php $DEST = '["ADT - HomeSecurityRatings","http://www.protectyourhome.com/partner/dl-01t-wl","100","ADT - HomeSecurityRatings","http://quickpixel.net/?a=653&amp;c=21503&amp;s1 ","0"]'; $array = explode(',',$DEST); $iter = 0; $max = count($array); $records = $max/3; $result = array(); $row = array(); $row = []; for ($j =0;$j<$records; $j++) { $index = ($j*3)+$j; if ($j==0) { $index--; } $result[]=array($array[$index],$array[$index+1],$array[$index+2]); } print_r($result);

preferences:
34.14 ms | 402 KiB | 5 Q