PHP Loop table implements a two-column display method, table two column
< tr="">
First column |
Second column |
<?php $setarr = Array (0,1,2,3,4,5,6,7,8,9), or//equivalent to the database obtained array $i =0; foreach ($setarr as $val) { $i + +;?> <?= $val?> <?php if ($i%2==0&& $i
'; } ?>
For example, a function conversion is required for the other character types:
<?PHP$STR = "Hello World". It ' s a beautiful day. "; Print_r (Explode ("", $str));? >
Results:
Array ([0] = hello[1] = world.[ 2] + [It ' s[3] = a[4] = beautiful[5] = day.)
http://www.bkjia.com/PHPjc/1011951.html www.bkjia.com true http://www.bkjia.com/PHPjc/1011951.html techarticle PHP Loop Table implements a two-column display method, table Two column table width= "100%" border= "0" cellspacing= "1" cellpadding= "0" style= "background:# CCC "tr TD align=" Center "bgcolor=" #F ...