Bubble sort, pick up the bubble sort content of Tifeng teacher video, personally think I understand this bubbling explanation is the easiest. Write down to learn from yourself!!!$arr =array (3,2,-5,9,-15,7);//Specify an array $bar =count
Use of cookies in Laravel5, laravel5cookie
Today, when I used cookies in the Laravel framework, I encountered some problems and was confused for more than half an hour. during this period, I studied Cookie implementation and found a lot of
Smarty static cache, smarty static
The cache allows the program to access the database more quickly, and the number of databases to be tuned is reduced, so it cannot be synchronized with the database in real time,
Cache files are generally stored in
My DBDA class and DBDA class
host, $ this-> uid, $ this-> pwd, $ this-> dbname); // execute the SQL statement $ reslut = $ db-> query ($ SQL ); // obtain data from the result set object if ($ type = 1) {return $ reslut-> fetch_all () ;} else
Static cache technology, static Cache
Essence: Saving webpage source codeDisadvantages: If the cache time is too long, the data will be updated in a timely manner; it cannot be used to update data in real time;
1. Use the smart template to call
Smarty template basics-cache data, smarty template-Cache
Cache data. This is not a temporary cache, but a cache written into the memory.
Write in one example: cache data
I. Basic functions for writing php and html pages
Since the smarty template is
Php: a simple method for obtaining random combinations from a specified number (recommended). php numbers
For example:Given the number 100, three combinations of the numbers must be randomly obtained, for example, 10.
The Code is as follows:
PHP Object-related knowledge summary, php Object-related knowledge
Object transfer: the PHP Object is passed by reference. More accurately, it is passed by an alias (identifier), that is, they all store the same identifier (ID) the identifier points
PHP intercepts a string with Chinese characters, computes Chinese Characters in two bytes, and intercepts the string
Program running result:String'L for everyone ...'(Length = 16)
This function is not supported in gb2312 encoding, because
PHP gets the current timestamp, and php gets the current time
PHP provides a special function to obtain the current timestamp, that is, the time () function.The time () function obtains the current UNIX timestamp. The returned value is the number
Yii2 log processing and yii2 log processing
Recently, a new PHP project was developed, which finally broke away from the claw of a framework (previously tortured) and chose the Yii2 framework, which is like a storm in the world. Logs are essential
Four basic php sorting algorithms: php sorting algorithmsBubble Sorting
Train of Thought Analysis: Like its name, it is like a bubble, and each time it comes out of the array with the largest number.
First round: from the first to the last bubble
Time query plug-in
I learned a lot from this project, and I feel a lot of benefits from my excellent colleagues. In the past few days, I have to sort out what I learned from the project, in case you cannot remember it, the blog garden is really my
PHP array knowledge sorting, php array sorting
Array: the language structure composed of key-value pairs,
Dimension can be divided into one-dimensional array and multi-dimensional array.
Keys can be divided into index arrays and associated arrays.
Php mysql_list_dbs () function usage example, mysql_list_dbs example
This example describes the usage of the php mysql_list_dbs () function. We will share this with you for your reference. The details are as follows:
Mysql_list_dbs () function
Examples of common expressions in the Where condition of ThinkPHP (detailed description), thinkphpwhere
Where condition expression format:
$ Map ['field name'] = array ('expression', 'Operation condition ');
$ Map is a common array variable and can
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