Regular Expressions (Regular expression) are concise and flexible representations of the find and replace string patterns. Importance is no longer mentioned, it is not difficult to understand, but without certain practice, it is not easy to apply
Initially we just download a core package. Expansion package We do not use, later to download. Download the completed and unzipped thinkphp folder into the root directory of the project we built. We know our project needs to be backstage behind the
Let me summarize what I learned.
method to get the data primary key: $goods _model-GETPK ();
Instantiate a data table two methods new Model (); M () Shortcut method takes only one memory at a time and the first method increases memory storage every
The encoding of all files under the PHP conversion folder is suitable for other encoded versions of the publishing site for example, you have a GBK version you want to have a UTF8 version or you only have GBK source code you want to develop two
[PHP]
'; $str 2 = "Hello," "Jack"; This string, is a news headline, it is easy to appear double quotes in the title. /** thinking: In double quotes, to declare a string, the interior can no longer appear double quotation marks, because the double
PHP has two kinds of automatic loading mechanism function [PHP] __autoload (); Spl_autoload_register (); 1. __autoload () load the file into the program when you need to use the class [PHP]
Spl_autoload_functions Spl_autoload_register (' load2 ');
The size of the framework file from 188KB to 131KB, the code to reduce the amount of 30%, the basic function is not reduced, mainly due to the public of many member variables, greatly reducing the Set/get method, in addition to refactoring some code,
Lamp lamp is an open resource network development platform based on Linux,apache,mysql and PHP. The term comes from Europe, where these programs are often used as a standard development environment. The name comes from the first letter of each
Named range
Note: Support for named ranges starts with version 1.0.5. The initial idea for a named range is from Ruby on Rails.
A named range (named Scope) represents a named (named) query rule that can be used in conjunction with other named scopes
A reference return reference is used when you want to use a function to find out which variable the reference should be bound to. Do not use return references to increase performance, and the engine is smart enough to optimize itself. Return
The time stamp in PHP and JavaScript in the comparison of the time stamp, essentially, they are the same thing, but if they are to compare the same time, or a little different, a little attention, will go astray, so, here are listed easy to ignore
The first is multi-template support: Need to create a new red folder on the TPL and corresponding action HTML template conf.php//Multi-template support ' tmpl_switch_on ' =>true, ' tmpl_detect_theme ' = True, index.html template
Many Web sites now use asynchronous loading techniques, and most of the data formats loaded are JSON (e.g. {"Order": "205", "205": "\U81EA\U9009\U80A1"}), The following is a list of PHP read data after the conversion to JSON output of several
For the third interface, the returned information is more comprehensive and is provided in JSON format as follows {"Weatherinfo": {//basic information; " City ":" Beijing "," city_en ":" Beijing "," date_y ":" February 16, 2012 "," Date ":" "," Week
1 JS way to call the PHP file and get the value in PHP to give a simple example to illustrate: As in the page a.html with the following sentence: In the b.php, there is a PHP code:
When the a.html file is executed, the b.php file is called and the
localhost1
root
123
Load ("config +"); $roots = $doc->documentelement;//Gets the root node, which is config (only one) $childs = $roots->childnodes;// Get all child nodes under the root node that is DB
The N method of getting file extension in PHP is acquisition from the Internet, basically the following methods: 1th method: Function Get_extension ($file) {substr (STRRCHR ($file, '. '), 1);} 2nd method: Function Get_extension ($file) {return
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