David Carrdcblog.devยทApr 6, 2013Splitting a telephone number in php with substrI recently had a collection of numbers in the format of area code then the telephone number with no spaces such as 01482123456 I needed a space after the area code so it would read 01482 123456 this is easily achieved using PHP's substr function. $...180 readsAdd a thoughtful commentNo comments yetBe the first to start the conversation.