Today, small part of the students to introduce the use of preg_replace function to the middle of a number of mobile phone numbers to replace the Chengshing number, this in many sites will have to do so, let me introduce the example method.
Regular
Who can help me look at this program?
A photo album, the installation of always curl has a problem, as if install.php and config.php in the path of the problem (I do not understand ...). Who's going to make a mess?
I'll answer that.
Attachments:
D0000D sent to the forum-------------------------------------------------------
No0 Plate, Dedecms
d8888d posts Title-------------------------------------------------------
Which of the following 3 scenarios is the fastest?
d8888d Main Post Content--
In PHP file File_put_contents function is able to write our string to the file Oh, this and PHP fwrite file is a bit the same, let me look at file_put_contents usage and fwrite differences.
The PHP file_put_contents () function is the most
Today's small part of the students to introduce a more comprehensive PHP and JS to determine the route to the designated page, I hope this method for you to help the reunion Oh.
PHP according to Referer Jump:
The code is as follows
Problem
About timestamp issues
Workaround
In the development of a mall project encountered a time stamp problem, now describe, hope everyone help solve
Data table data segment defined as int "11"
Now want to read time is today's timestamp as today's
Problem
Do you have a tutorial on regular expressions?
Workaround
There is an urgent need for a tutorial on regular expressions
It's better to be a video or a manual.
I have English now, but I can't read it.
[ ]
Reference answer
The sticker
In php5, I have provided two functions, Json_encode and Json_decode can implement JSON and arrays, but in Chinese can support bad, the following describes a processing support Chinese array and JSON mutual transfer function.
The code is
In PHP if we want to make the array random sort as long as the use of the shuffle function, but shuffle can only use a one-dimensional array oh, the following small part to introduce several array sorting methods.
In PHP, you can use the shuffle
Problem
About the enhanced use of callback functions.
Workaround
When the structure of the program is more complex, more introduction and no rule reference. There is an echo ' aaaa ' in a file; Will affect the program output.
function Ob_gzip
Problem
How to achieve self-built station self-opened two-level domain name OH?
Workaround
How to achieve self-built station self-opened two-level domain name OH?
Reference answer
Generic domain name +rewrite rewrite
Reference answer
Well,
This article provides a workaround for PHP beginners to connect MySQL prompt to undefined function \ ' mysql_connect () after PHP is configured.
Let's test the book first. PHP connection MySQL
The code is as follows
Copy Code
Let me take a look at a specific character or space implementation of PHP and SQL removal string, here we just use trim.
PHP removes string end-to-end specific character function trim ()
$a = "(A,b,c,)";echo $a. ""; Output: (A,b,c,)$b =trim ($a,
An entry-level PHP basic grammar and data type article, I hope you can provide some help PHP beginners OH.
PHP basic syntax and data types:
(1), PHP basic syntax:
1, htm and PHP mixed2, a statement to; (End of semicolon)3, how to define a variable,
A server with a WAMP environment has recently been configured, but it is found that the time and local time are regional, and the time taken to take advantage of the date to be used to show that there is a jet lag, let's work together to cause the
This article to the students to introduce the PHP object-oriented development and other polymorphic details, I hope this tutorial for you to help students.
Polymorphism of the class
1. Polymorphism of the introduction and advantages.2. Operator:
To implement a no-refresh page We generally use AJAX to achieve, used to be the most original JS Ajax validation now commonly used jquery Ajax as long as a simple post can be solved, the following we look at the example
index.php page
The principle is very simple, because GB2312/GBK is Chinese two bytes, these two bytes is the range of values, and utf-8 in the Chinese characters are three bytes, also each byte has a value range. The English language is less than 128 and takes
In the form we have a method property, he can let the form is post and get, in PHP should use the corresponding get,post to receive, let me introduce the method parameter description
1. It was used before, when the form form post commits, the URL of
This article to the students to introduce a self-written PHP phone attribution query function, the principle is very simple, the realization is not difficult, I believe we all read.
The code is as follows
Copy Code
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service