Generate table with php array