Formatting phone numbers

Options
Hi all!

I need to determine whether or not a potential new user exists based on whether or not their phone number is already stored in my db. But, phone numbers are being provided from different sources - some from user input, some from pulling contact info, etc.. I'm only using US phone numbers for now. Does anyone have any good tips/tricks on how to ensure uniformity in the values I store?

Comments

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    Hi  - I would consider taking a look at the Twilio extension. The function Twilio_Send_SMS is a good example of what you can do for uniformity in the function stack the replace filter and json_decode

    [CleanShot 2021-11-19 at 16.57.59.png]