小编Rus*_*ces的帖子

在字符串中的每个第12个字符后添加单词break标记

$my_string = "Lorem Ipsum is simply dummy text of the printing and typesetting industry."
Run Code Online (Sandbox Code Playgroud)

预期结果 :

"Lorem Ipsum <br/> is simply<br/> dummy text<br/>of the printing<br/> and typesetting<br/> industry."
Run Code Online (Sandbox Code Playgroud)

标签应该在每第12个字符后添加,而不是像这样:

There are ma<br/>ny variations
Run Code Online (Sandbox Code Playgroud)

html php string

0
推荐指数
1
解决办法
2217
查看次数

如何使用PHP或MySql生成具有特殊要求的发票号

如何生成发票号如下:

Invoice Number = MC1200001 

MC : Company name
12 : current year (Flexibel)
00001 : auto increment (Flexibel - auto increment and will reset to 00001 again if year is 2013)
Run Code Online (Sandbox Code Playgroud)

预期结果 :

current year 2012 :

MC1200001
MC1200002
MC1200003
.....

year 2013

MC1300001
MC1300002
MC1300003
.....
Run Code Online (Sandbox Code Playgroud)

需要你的想法或解决这个问题的方法.

谢谢.

php mysql

-2
推荐指数
1
解决办法
2万
查看次数

标签 统计

php ×2

html ×1

mysql ×1

string ×1