Regular Expression of phone number (mobile phone number, 3-4 area code, 7-8 live video number, 1-4 extension code)
(\ D {11}) | ^ (\ d {7, 8}) | (\ d {4} | \ d {3})-(\ d {7, 8 }) | (\ d {4} | \ d {3})-(\ d {7, 8 }) -(\ d {4} | \ d {3} | \ d {2} | \ d {1}) | (\ d {7, 8 }) -(\ d {4} | \ d {3} | \ d {2} | \ d {1}) $)
Matching format:11-digit mobile phone number3-4-b
patient. I am a little white ......
Hello.
I don't think you can use regular expressions for this task.
Why?
What are the search results?
Zip code
Administrative Region
250102
Shandong Jinan City Historical Zone2218-5150
250102
Shandong Jinan City Historical ZoneNo. 33188-33688, No. 2, east longitude 10 road
250102
Php display area code by IP address php display area code by IP
Script ec (2); script
Define ('ipdata _ MINI ', PHPCMS_ROOT. 'include/IPDATA/mini. Dat ');Define ('ipdata _ full', PHPCMS_ROOT. 'include/IPDATA/QQWry. Dat ');
Class ip_area{Var $ fp = NULL;Var $ func;Var $ offset;Var $ index;
Function ip_area (){If (@
Eclipse code area background settings, eclipse code background
Http ://
1. First download a later version of Eclipse. We recommend that you: http://www.xiazaiba.com/html/23498.html.
2. Download plug-in: Click to open the link or link: http://pan.baidu.com/s/1mgqmLde password: gp5z
3. paste the content of the two folders to the corresponding Eclipse folder (th
If you are using php versions earlier than php5.2 and cannot use the ZipArchive class, you only need php5.2 and later versions to conveniently use the ZipArchive class to decompress and compress zip files, the following is a small series for you to introduce. If you are using php versions earlier than php5.2 and cannot use the ZipArchive class, you only need php5.2 and later versions to conveniently use the ZipArchive class to decompress and compress
Php zip compression code
$ Error = ""; // error holder
If (isset ($ _ POST ['createpdf ']) {
$ Post =$ _ POST;
$ File_folder = "files/"; // folder to load files
If (extension_loaded ('Zip') {// Checking zip extension is available
If (isset ($ post ['Files']) an
Example 1. download the prepared zip file first. php tool class. after downloading and decompressing the file, put the file in the corresponding directory. I put it in the include folder under the virtual directory. 2. add the following code to your php file: require_once./include/zip. php; $ zipnewPHS php compressed file zip
For work reasons, a complete zip code database is required. The data on the Internet is relatively old and there is very little data. I really hope the post office can download the zip code for free, or you can have an interface. At last, I did not pay for it, and my eyes were settled in http://www.cpdc.com.cn/(China P
1. Download the zip. php tool class that I have prepared, decompress it, and put the files in the directory. I put the files in the include folder under the virtual directory.2. Add the following code to your php file:Copy codeThe Code is as follows:Require_once "./include/zip. php ";$
There is a zip table containing all States and zip codes in the United States. How can I list a zip code for each state? There are two columns in each row, namely the State name and the zip code, which were not figured out for a l
Example of zip compression for php files1. Download the zip. php tool class that I have prepared, decompress it, and put the files in the directory. I put the files in the include folder under the virtual directory.2. Add the following code to your php file:Usage:Require_once "./include/zip. php ";$
PHP online zip compression function code
/* Create a zip package in PHP */
Function create_zip ($ files = array (), $ destination = '', $ overwrite = false ){
// If the zip file already exists and overwrite is false, return false
If (file_exists ($ destination )! $ Overwr
1. Please download my prepared zip.php tool class, download and unzip, put the file in the corresponding directory, I was placed in the virtual directory under the Include folder.
2. Add the following code to your PHP file
Copy Code code as follows:
Require_once "./include/zip.php";
$zip = new Phpzip
This program can be quickly implemented to our files using PHP compression class compressed into our thinking zip, or rar compression package, suffix name can be customized Oh, compression algorithm is from a foreign site copy.
First instantiate and then pass the argument. Two parameters. First an array of your file addresses. The second is the absolute address of the compressed package file that you want to save.
For example:
The
Function Code in zip format for php compressed files
/* @ Creates a compressed zip file: function for compressing multiple files into one zip file
* @ $ Files array type instance array ("1.jpg"," 2.jpg ");
* @ Destination the path of the target file, for example, "c:/androidyu
1. Please download my prepared zip.php tool class, download and unzip, put the files inside the corresponding directory, I was placed in the virtual directory in the Include folder.
2. Add the following code to your PHP file
Copy CodeThe code is as follows:
Require_once "./include/zip.php";
$zip = new Phpzip ();
$zip-
/* PHP Create Zip Compressed package */
function Create_zip ($files = Array (), $destination = ", $overwrite = False) {
If the zip file already exists and overwrite is false, return false
if (file_exists ($destination) ! $overwrite) {return false;}
VARs
$valid _files = Array ();
If files were passed in ...
if (Is_array ($files)) {
Cycle through each file
foreach
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.