📜  带破折号功能的php格式电话号码 - PHP代码示例

📅  最后修改于: 2022-03-11 14:54:17.405000             🧑  作者: Mango

代码示例1
$number = "1234567890";
$formatted_number = "$number[0]$number[1]$number[2]-$number[3]$number[4]$number[5]-$number[6]$number[7]$number[8]$number[9]";