Note: The custom function should be placed in the project application directory/common/common.php. Here is the key.
function call format for template variable: {$varname |function1|function2=arg1,arg2,###}
Description
There can be no spaces
Copy CodeThe code is as follows:
This method is purely a back function, not explained;
function Countstr ($STR) {
$str _array=str_split ($STR);
$str _array=array_count_values ($str _array);
Arsort ($str _array);
return $STR _array;
}
Here is an
Configuration:
1. Download VC9 x86 thread safe from the Windows.php.net/download website
2. Unzip the file to the directory.
3. Change the php.ini (Php.ini_d .... Delete later) and then open the MySQL extension (that is, delete;
How PHP is Installed
Choice of PHP version
There are two versions of PHP under Windows (php5.4.7):
VC9 x86 Non thread safe non-threaded to run in fastcgi mode
VC9 x86 thread safe Threading Security in ISAPI mode
installation Process
Just
So love Micro net now explain PHP built-in functions
Uppercase and lowercase conversion related functions
Text HTML tag handler function
Case-sensitive about functions
Copy CodeThe code is as follows:
Strtolower ()
Strtoupper ()
Ucfirst ()
Ucword (
The normal MySQL connection will be discarded because of the problem of preventing SQL injection every time and it is relatively slow
Mysqli is an optimization made on the basis of a common MySQL. To be honest, it's a success. Preprocessing method
1 in an SQL statement, you can add a restriction: Left (text,20) takes only the first 20 words of text;
2 can be used with limit FromRecord, recordnum to use as paging, such as the limit 0,30 indicates that the first record from the beginning of
in this article, we mainly solve two problems:
1: How to generate HTML content into a Word document in PHP
2:php The problem is not centered when the content in HTML is generated in the Word document, it is displayed by default in Web view.
3:php
Haha, will use only the initial stage, to understand the principle is what, so as to better use, crap not much said
Pass value: is to assign the value of the argument to the row parameter, then the modification of the row parameter will not affect
If the value is not duplicated, you can use Array_flip () to exchange the key and the value, then Krsort (), and finally Array_flip () swap back, you can compare the size. If you want to intercept an array, Array_slice () is available.
If there is
I am often asked if an array of PHP, if accessed with foreach, is a fixed sequence of traversal? In what order does it traverse?
Like what:
Copy CodeThe code is as follows:
$arr [' laruence '] = ' huixinchen ';
$arr [' yahoo '] = 2007;
$arr ['
PHP Super Global Variables list$_get[] Get an array of variables submitted with the Get method
$_post[] Get an array of variables submitted with the POST method
$_cookie[] Get and set the COOKIE ID of the current Web site
$_session[] A unique
Welcome to the Exchange! The implementation code is as follows:
Copy CodeThe code is as follows:
/**
*author: Black Bird Heart
* Code to implement long article pagination
Principle
* Use an array to record every page of the article (with P0, p1,
Wzskynet#163.com
PHP escapeshellcmd Multi-byte encoding vulnerability
• Detailed explanation of the application of the cache technology in PHP
• Development of multitasking applications with PHP V5
• Detailed parsing of PHP sending data to MySQL
If you use the wrong method function or less, if the logical order of several method functions is wrong, it is probably a loophole, and it is not easy to find out. Tangled Ah ~
Search the Internet to see which man has summed up the relevant
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