[PHP] SMS interface (regular matching)

little bottle
Release: 2023-04-06 06:12:02
forward
3441 people have browsed it

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 tutorial Regular 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!

Related labels:
php
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!