Y
Y
yuri_kan2017-06-01 16:24:44
Data processing
yuri_kan, 2017-06-01 16:24:44

How, after clearing the value from the mask, re-substitute the mask for it?

Actually a dilemma, the decision does not ripen.
I get the phone number that the person enters using the mask.
I process the number, remove the mask from it (preg_replace('/[^\d]+/ui', '', $phone);) and throw it into the database.
How can I display data from the database with a mask?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question