Split string with different delimiters

前端 未结 0 342
故里飘歌
故里飘歌 2020-11-29 23:05

$string = "DT2099T2";

How can I split $string into this pattern? ---> DT-2099-T2 (2-4-2)

Thank you.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题