1.php Interface Class: interface
In fact, their role is very simple, when a lot of people together to develop a project, may go to call someone else to write some of the class, then you will ask, how do I know how a certain function of his
"The concept of serialization"
Serialization is the process of converting an object's state into a format that can be persisted or transmitted. The opposite of serialization is deserialization, which converts a stream to an object. These two
The life cycle of PHP is detailed
A Study of PHP variables
PHP Memory Management Detailed
Installing the Build PHP environment
Write the first PHP extension
The return value of the PHP function
PHP extension Functions Accept Parameters
How
When writing cache is used, it is often encountered to build multiple layers of directory operations, which we manually to operate too cumbersome, today we have a look at the use of Python recursion to build a multi-level directory method:
First on
This example adds Chinese support by using the Yii Framework Development tutorial (one) UI component ActiveForm example, a brief description of multinational language support. Detailed documentation can refer to the YII documentation.
Information
We've learned how to use Active record (AR) to get data from a single datasheet. In this section, we explain how to use AR to connect multiple related data tables and retrieve the associated (join) data sets.
To use relational AR, we recommend that
PHP zip file Comparison class, compare the contents of two zip files, return new, delete, and the same file list. Only one layer is supported temporarily.
Requirements: Upload a zip file, there are many picture files in the zip. A series of
PHP 5.3 added the __call and __callstatic magic method.
__call the __call method is automatically invoked when the method being invoked does not exist or has insufficient permissions.
__callstatic the __callstatic method is automatically invoked
"PHP Syntax Structure Classification"
Cyclic structure, sequential structure and selection structure
One, circular statement
(1), Foreach Loop
Defined:
A foreach loop is used to iterate through all the items in a collection, the most typical
Principle: Through the tag tags loaded php files, PHP files will use the GD library to generate a 1x1px blank transparent picture returned, and record the passed parameters written log file.
sitestat.php
See more highlights of this column:
In either language, string manipulation is an important foundation, often simple and important. Just as people speak, there is a body (graphical interface), there is a language (print string?). Clearly, the string can explain more things. PHP
A useful feature of PHP is the way it handles PHP forms. The very important principle you need to understand is that any elements of the form will automatically take effect in your PHP script. See "Variables outside of PHP" in this manual for more
Depending on the situation, the average developer is often 10%~20% less efficient than a good developer. Good developers are more efficient because they have a wealth of experience and good programming habits. Poor programming habits will affect
Session management, a very important part, let the parameters pass between the pages, this is a simple example, while learning to use, the effect as shown:
Main Page index.php code:
session_start(); $_SESSION['name']="zhang3"; echo
A powerful advantage of smarty is that you can use the Smarty variable directly in the template, eliminating a lot of code, very convenient.
Here are examples of access to page request variables such as get,post,cookies,server,enviroment and
Initial understanding of the source file of the message
This paper briefly describes the principle of the decoding of mail and MIME messages through POP3 protocol, and provides two practical PHP classes for collection and MIME decoding, and
Three major features of php: encapsulation, inheritance, polymorphism, and Polymorphism
1. Encapsulation
Objective: To make the class safer
Practice: if the member variable is private, the member variable is indirectly operated through the method
PHP: The function used to verify the validity of the ID card. php: The function used to verify the ID card.
For more information, see the code:
Function is_idcard ($ id) {$ id = strtoupper ($ id); $ regx = "/(^ \ d {15} $) | (^ \ d {17} ([0-9] | X) $
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