嗯,看到有些论坛上使用ubb的,还可以写表格。
其实能给出这一块的代码也行。
语法好像是
[tbl]
|a1|s2|s3|
|b1|b2|b3|
|c1|c2|c3|
[/tbl]
当然也可以用逗号分隔。
自己太弱了写不出来。。
谢谢
$s =<<< UBB[tbl]|a1|s2|s3||b1|b2|b3||c1|c2|c3|[/tbl]UBB;$s = preg_replace_callback('/\[tbl\](.+)\[\/tbl\]/isU', 'tbl_func', $s);echo $s;function tbl_func($r) { $t = preg_replace( array('/^\|/m', '/\|\r?$/m', '/\|/m'), array('', ' ', ''), $r[1]); return "$t
";}
Copy after login
a1
s2
s3
b1
b2
b3
c1
c2
c3
其他标记如法炮制
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2024-09-14 12:05:17
-
2024-09-14 12:00:16
-
2024-09-14 10:34:37
-
2024-09-14 10:34:11
-
2024-09-14 10:34:03
-
2024-09-14 10:33:46
-
2024-09-14 10:33:39
-
2024-09-14 10:33:02
-
2024-09-14 10:32:51
-
2024-09-14 10:32:40
Latest Issues
php - Node.js怎么输出?
node.js是不是不需要apache等类似的服务器支持,直接可以输出内容? 那么现在已经有apache+php了,想借助nodejs在服务器端输出内容,比如调用某个js的rend...
From 2017-04-10 17:15:33
0
3
250
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
JAVA Beginner's Video Tutorial
2410129
Latest Downloads
More>
-
-
-
-
-
-
-
-
-
About us
Disclaimer
Sitemap
-
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!