Home>Article>Backend Development> [PHP] SMS interface (regular matching)
This article mainly introduces the use of regular matching to achieve matching of SMS interfaces. Friends who are interested can learn about it.
The first step Log in/register Weimi SMS platform https://www.weimi.cc
After successful registration, the system will give away 10 test text messages
The second step View Example code and development documents (read carefully) Parameters are very important
As shown in the figure development example (php) and development documents
After successful registration, Micron The platform will send the interface UID and interface password to your bound email address. Please save it
Introduction to the third step parameters
You can first make a request to obtain the mobile phone number Form (including regular judgment) Related tutorials:HTML video tutorial
##The page is as follows Copy the example code. The overall PHP code is as follows When the user submits and the phone number is normal, the following example program will be executed uid and pas are the interface UID and pas respectively. The interface password Micron will be sent to the bound email mob is the phone number cid is the SMS format mine is the default format p1 You can set the SMS verification code content p2 If it is "1", the text message will prompt "valid within 1 minute"; if set to "3", it will prompt "valid within 3 minutes" Other parameters are optional The final output result prompts Related tutorials:PHP video tutorialRegular expression video tutorial
The above is the detailed content of [PHP] SMS interface (regular matching). For more information, please follow other related articles on the PHP Chinese website!