Home >Backend Development >PHP Tutorial >How to loop table in php to display one row and two columns_PHP tutorial
This article mainly introduces the method of php looping table to realize one row and two columns display. This article directly gives the implementation code, the key points It is the application of the remainder method. Friends who need it can refer to it
?
2 3
4 5
15 16
17
18
19
|
|
1 2 3 4 | <🎜>$str = "Hello world. It's a beautiful day.";<🎜> <🎜>print_r (explode(" ",$str));<🎜> <🎜>?> |
1 2 3 4 5 6 7 8 9 | Array ( [0] => Hello [1] => world. [2] => It's [3] => a [4] => beautiful [5] => day. ) |