<?php $tahun = array(2010,2011,2012,2013,2014); $status = array("akademi","instansi","umum","pending","pass"); $total = array(2,1,3,4,5); $res = []; foreach($tahun as $ind=>$val){ $res[$ind] = [$val, $status[$ind], $total[$ind]]; } print_r($res);
You have javascript disabled. You will not be able to edit any code.