Because recently to make a project, so have to re-use PHP, has been useless PHP for several months, originally used is not how ripe, that is, the graduation design with it made a work, three days, so the code added up to less than 2000 linesThe
Dedecms call date formatting format Daquan, dedecms Date Format
I remember that when I first learned dedecms, I had a headache for a long time when I called the article. Today I edited a specially collected article about dedecms date formatting,
Example of a json data function returned by php, and a json function returned by php
Json_encode () function usage.
Echo json_encode (array ('A' => 'bbbbb', 'c' => 'ddddd ');
In this way, a standard json format data is generated.
The Code is as
A function in PHP that controls string output// A function in php that controls the output of strings (in Chinese and English). The number of words displayed in each line avoids the impact of English.// $ Str string// $ Len the number of words
PHP implements scheduled task execution, and php implements the task
This example describes how to implement scheduled task execution in PHP. The code is simple and practical. Share it with you for your reference.
The specific implementation method
PHP switch judgment statement "advanced" Usage Details, switch details
It is called "advanced" usage only because I have not mastered the basic usage of the switch. so, I will talk about the basic usage of the switch!
The switch statement is similar
PHP allows you to draw 3D sector statistical charts and image scaling instances,
1. Use functions of the php gd library to draw a 3D sector Statistical Chart
50; $ I --) {imagefilledarc ($ image, 50, $ I, 100, 50,-160, 40, $ darknavy, IMG_ARC_PIE);
PHP code for cropping images and adding watermarks,
3. PHP cropping Images
before cropping after cropping
Effect
4. Add a watermark to the image using PHP
no watermark Add a watermark
Effect
Differences between echo, print_r and var_dump in PHP, and print_rvar_dump
This article analyzes in detail the differences between echo, print_r, and var_dump in PHP. Share it with you for your reference. The specific analysis is as follows:
All
Php Chinese string truncation method example summary,
This example summarizes the php Chinese string truncation method, which is very practical. Share it with you for your reference. The specific method is analyzed as follows:
Using the PHP function
Top 11 PHP questions with the highest frequency, and top 11 php questions
Are you looking for a PHP development job and some questions and answers about PHP? This article will share with you some of the 11 most frequently asked PHP interview
PHP echo, print_r (expression), var_dump (expression) difference, print_rvar_dump
All three are php statements with output functions, but print_r (expression), var_dump (expression) is a function, and echo is only a language structure, not a
In Windows, how does one solve Apache failure caused by incorrect PHP installation path configuration?
This article mainly introduces how to solve the problem that Apache cannot be started due to incorrect PHP installation path in Windows. This
How to Use output_buffering in PHP?
This article mainly introduces output_buffering in PHP. This article describes some advanced usage of output buffering. For more information, see
I personally think that Output buffering is a pure 4.0 feature.
PHP mobile Internet Development notes (2) -- variables and constants
I. Basic syntax format of PHP5.4
1. PHP delimiter
View source print?
1.
$php
=true;
// Semicolon concluding remarks
2.
if
(
$php
){
3.
echo
True
;
// Semicolon
Yii phpexcel automatically generates files and saves them to the server.
Recently, for another report task, you must export the table to the Administrator by email in excel format every day, save the table to the server using phpexcel, and then send
PHP error Warning: Cannot modify header information-headers already sent by solution, warningheaders
This error is reported when you test the following code today:
Copy codeThe Code is as follows:Session_start ();$ _ SESSION ['username'] = $
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