Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

phone-number

Searching for phone numbers in mysql

November 15, 2022 by Magenaut

I have a table which is full of arbitrarily formatted phone numbers, like this

Categories MySQL, Q&A Tags mysql, phone-number, search, string Leave a comment

How to mark-up phone numbers?

November 10, 2022 by Magenaut

I want to mark up a phone number as callable link in an HTML document. I have read the microformats approach, and I know, that the tel: scheme would be standard, but is quite literally nowhere implemented.

Categories HTML, Q&A Tags html, markup, phone-number, url-scheme Leave a comment

Formatting Phone Numbers in PHP

October 18, 2022 by Magenaut

I am working on an SMS app and need to be able to convert the sender’s phone number from +11234567890 to 123-456-7890 so it can be compared to records in a MySQL database.

Categories PHP, Q&A Tags phone-number, php Leave a comment

Validating US phone number with php/regex

October 17, 2022 by Magenaut

EDIT: I’ve mixed and modified two of the answers given below to form the full function which now does what I had wanted and then some… So I figured I’d post it here in case anyone else comes looking for this same thing.

Categories PHP, Q&A Tags phone-number, php, regex, validation Leave a comment

Remove all non-numeric characters from a string; [^0-9] doesn’t match as expected

October 16, 2022 by Magenaut

I’m trying to remove everything from a string but just numbers (0-9).

Categories PHP, Q&A Tags phone-number, php, regex, sanitization, string Leave a comment

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress