Php cyclically implements the display of one row and two columns in table. Php looping table implements the display of one row and two columns. tablecellspacing1cellpadding0trtdaligncenterbgcolor # F php looping table implements the display of one row and two columns.
First column |
Column 2 |
<? Php $ setarr = array (,); // equivalent to the array obtained by the database $ I = 0; foreach ($ setarr as $ val) {$ I ++;?> <? = $ Val?> <? Php if ($ I % 2 = 0 & $ I
';}?>
For example, if it is another character type, function conversion is required:
<?php$str = "Hello world. It's a beautiful day.";print_r (explode(" ",$str));?>
Result:
Array([0] => Hello[1] => world.[2] => It's[3] => a[4] => beautiful[5] => day.)
Partition table width = "100%" border = "0" cellspacing = "1" cellpadding = "0" style = "background: # CCC "tr td align =" center "bgcolor =" # F...