Recently, a website requires an infinitely hierarchical drop-down list, so the following works are available. At first, it seems very difficult to think of such a function. I have also done an encyclopedia before, and it also involves the
I can't help but go deep into the requireinclude sequence of PHP when I see the article of laruence. here I will record the in-depth process for future reference. A deep understanding of PHP's require/include sequential http://www.bitsCN.com/article/
Json operations have been used in the project recently. the tests are normal. However, when the object is converted to json today, a Chinese attribute is converted to null. JSON.
The operation code is as follows:
The code is as follows:
$ Usr =
The design patterns book introduces the design patterns into the software community by ErichGamma, Richard dhelm, RalphJohnson, and JohnVlissidesDesign (commonly known as the "Gang of Four ").
Design ModeThe book introduces Design patterns to the
Make PHP cookies take effect immediately and use them without refreshing them. For more information, see. Cookie
The code is as follows:
// The php cookie setting function takes effect immediately.
Function cookie ($ var, $ value = '', $ time =
JS website performance optimization notes. using the following method helps improve code execution efficiency.
1. remove JavaScript comments
Except for annotations, all other // or/**/annotations can be safely deleted because they do not make sense
The following is an error code. can you see what went wrong ?? I am a beginner and have no idea what to do. but I have to try it myself to find out what is wrong. neither the book nor the tutorial will tell me where the error code is: Parse error:
One of the debugging tools for large websites (php performance optimization analysis tool XDebug), can be used to develop php. It helps solve various php code problems. I. installation and configuration
1. Download PHP XDebug extension, URL:
Everyone has different ways of learning. the purpose of this article is to share their learning process for reference only. do not blindly use others' learning methods to find useful learning methods. I often see some friends in some forums and QQ
The sprintf () function writes formatted strings to a variable.
The code is as follows:
// Sprintf () function. the returned value is a formatted string.
String sprintf (string $ format [, mixed $ args [, mixed $...])
$ Y = 11;
$ M = 3;
$ D = 9;
$
Today, when the cici user sent a question saying that the error suppression symbol (@) was used before the function call parameter, it seems that the parameter passing through the reference will become invalid. he wanted me to answer why. see the
Breakpoint debugging is essential for software development. here we will introduce the debugging configuration of php in the eclipse tool in ubuntu10.04. I plan to configure ZendDebugger for debugging. after the configuration is completed for a long
Small notes: PHP traverses all files, including files in subdirectories. combined with the compressed file class, you can package the entire directory.
The code is as follows:
Function Files ($ path)
{
Foreach (scandir ($ path) as $ line)
{
If ($
When PHP runs in FastCGI mode, PHPFPM provides a method named fastcgi_finish_request. According to the document, this method can increase the request processing speed. if some processing can be performed after the page is generated, this method can
Both mysql_num_rows and count (*) can calculate the total number. what is better? Both mysql_num_rows and count (*) can calculate the total number. what is better?
Or
When will num_rows and count (*) be used?
An intuitive comparison
Test data:
Function array_map (): Multi-array callback function-calls the callback function to the unit of the given array.
The code is as follows:
/* Function array_map (): Multi-array callback function-calls the callback function to the unit of the given
Function array_walk (): a single array callback function-applies user functions to each member in the array.
The code is as follows:
/* Function array_walk (): Single array callback function-applies user functions to each member in the array
* 1.
Compare multiple cycles and move the maximum number to the top of each comparison. During each loop, find the maximum value in the remaining variables and then reduce the query range. After multiple loops, the array is sorted.
The code is as
Chapter 4 data processing-php regular expression-Zheng AQI (continued). For more information about learning php regular expressions, see. Php regular expressions are good applications. Regular expression
1. basic knowledge of regular
Check the connect. the first sentence in php is error_reporting (E_ALL ^ E_NOTICE). I have never paid attention to this statement before. I know it is an error message, but I am not sure how to set it. Next, I have excerpted something from the
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