php循环table实现一行两列显示的方法
第一列 | 第二列 |
如:是其他字符类型,需要用到函数转化:
<?php $str = "Hello world. It's a beautiful day."; print_r (explode(" ",$str)); ?>
结果:
Array ( [0] => Hello [1] => world. [2] => It's [3] => a [4] => beautiful [5] => day. )
第一列 | 第二列 |
如:是其他字符类型,需要用到函数转化:
<?php $str = "Hello world. It's a beautiful day."; print_r (explode(" ",$str)); ?>
结果:
Array ( [0] => Hello [1] => world. [2] => It's [3] => a [4] => beautiful [5] => day. )
PHP之友评论