Multiple paging styles for php paging and paging functions
/**
* Page name: page_class.php
*/
Class Page {
Private $ each_disNums; // Number of Entries displayed on each page
Private $ nums; //
Php date function example: get the last day of the month
/**
* Date-get the last day of the current month
* @ Return int
*/
Public function get_lastday (){
If ($ this-> month = 2 ){
$ Lastday =
10 questions about self-check Web site projects
Web design and development is a long-term and iterative process. It can take weeks or months. If you focus on the details, you can easily get lost. Have you achieved your original website goal?
Php Chinese character transcoding Unicode encoding function
/**
* $ Str original string
* $ Encoding of the original encoding string. the default value is GBK.
* $ Prefix: the prefix after Encoding.
Php SQL import to mysql database method analysis
------ Answer -------- The second question has not been done yet. pay attention to this question. The third problem: the simplest one is to execute the mysqldump
Php class for simplified conversion in UTF-8 coding
//
Class utf8_chinese
{
Private $ utf8_gb2312;
Private $ utf8_big5;
Public function _ construct (){
$ This-> utf8_gb2312 =
Solutions to php regular expression matching problems in Chinese
$ Str = '123456789abcdefg of the People's Republic of China ';
Echo preg_match ("/^ [u4e00-u9fa5_a-zA-Z0-9] {3, 15} $", $ strName );
?>
Php code for file Zip compression
/* Creates a compressed zip file */
Function create_zip ($ files = array (), $ destination = '', $ overwrite = false ){
// If the zip file already exists and
SQL statement for archiving PHP articles by date (month/day)
Select FROM_UNIXTIME (pubtime, '% Y-% M') as pubtime, count (*) as cnt from articles group by FROM_UNIXTIME (pubtime,' % Y-% M ')
PHP articles are archived
Phpexcel quick Development Guide (good)
Include ("./class. php"); // contains the basic class header file
Include ("./class/phpexcel/PHPExcel. php"); // generate basic class definitions for excel (note
Php judges that the string is in pure English, pure Chinese characters, or a mix of Chinese and English formats.
$ Strarray [1] = "hello ";
$ Strarray [2] = "123456 ";
$ Strarray [3] = "123 hello ";
$
Several methods for php to determine the file type to Upload
/**
Desc: determine the type of the uploaded file
Link: bbs.it-home.org
Date:
*/
$ Array = array ('jpg ', 'GIF', 'PNG',
Use substr () to remove the last character of the string
"," Must be used to separate the data in the statistical chart. However, when I use a loop to accumulate strings, it is inevitable that there will be one more ",". For example,
Mysql operations, v0.2, and some solutions to deal with large data volumes
/* Mysql simple class by joffe q89949401 bib @ MAD code poet; this class is completely static when used directly include and use mysql: Method () the class is
Php merges all Layer 2 elements of the $ arr two-dimensional array and returns
Php merges all Layer 2 elements of the $ arr two-dimensional array and returns Array_merge ()Combine the elements of one or more arrays. the values of an array
Php methods for obtaining http request header information
Foreach (getallheaders () as $ name => $ value ){
Echo "$ name: $ value \ n ";
}
?>
However, this function can only be used
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