Guest User

Untitled

a guest
Nov 28th, 2019
118
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. Возможно ли сделать таблицу через циклы?
  4.  
  5. https://ibb.co/2nCKQ2P - пример.
  6.  
  7. $data0=array('full','low','debug');
  8. $data1=array('1'=>'f','2'=>'b','3'=>'c');
  9. $data2=array('11'=>'n','22'=>'m','33'=>'x','44'=>'z');
  10. $data3=array('%%'=>'sd','&&'=>'ac','**'=>'vb');
  11.  
  12.  
  13. echo '<table>';
  14. echo'<tr>';
  15. echo '<td rowspan="3">full</td>';
  16. echo '<td>1</td>';
  17. echo '<td>f</td>';
  18. echo '</tr>';
  19. echo '<tr>';
  20. echo '<td>2</td>';
  21. echo '<td>b</td>';
  22. echo'</tr>';
  23. echo '<tr>';
  24. echo '<td>3</td>';
  25. echo'<td>c</td>';
  26. echo'</tr>';
  27. echo'<tr>';
  28. echo '<td rowspan="4">low</td>';
  29. echo '<td>11</td>';
  30. echo '<td>n</td>';
  31. echo '</tr>';
  32. echo '<tr>';
  33. echo '<td>22</td>';
  34. echo '<td>m</td>';
  35. echo '</tr>';
  36. echo '<tr>';
  37. echo '<td>33</td>';
  38. echo '<td>x</td>';
  39. echo '</tr>';
  40. echo '<tr>';
  41. echo '<td>44</td>';
  42. echo '<td>z</td>';
  43. echo '</tr>';
  44. echo '<tr>';
  45. echo '<td rowspan="3">debug</td>';
  46. echo '<td>%%</td>';
  47. echo '<td>sd</td>';
  48. echo '</tr>';
  49. echo '<tr>';
  50. echo'<td>&amp;&amp;</td>';
  51. echo '<td>ac</td>';
  52. echo'</tr>';
  53. echo'<tr>';
  54. echo '<td>**</td>';
  55. echo '<td>vb <br></td>';
  56. echo'</tr>';
  57. echo '</table>';
RAW Paste Data