I'm trying to use php to generate a 9 digit number that does not start with a 0 and is separated by dash every third number.
e.g. 102-394-458
I'm also debating whether
Of course the choice will affect how the number is generated.
implode('-',str_split(rand(100000000,999999999),3))
Generally, it's probably better simply to store as a number, and format it with the - only for display purposes