First, the function realization
Example 1:
Copy CodeThe code is as follows:
function Time_tran ($the _time) {
$now _time = Date ("Y-m-d h:i:s", Time () +8*60*60);
$now _time = strtotime ($now _time);
$show _time = strtotime ($the _time);
$dur =
Sort break Index Ascending value sorting
Rsort Breaking index Descending value sort
Asort Keep Index Ascending value sort
Arsort Keep Index Descending value sort
Ksort Keep index Ascending key value sort (key)
Krsort Keep index Descending key
php5.2 's new JSON functionality is very popular, but it has been tested and found
Json_encode's handling of Chinese is problematic,
1. GB encoding cannot be processed, all GB encodings are replaced with null characters.
2.UTF8 encoded in Chinese is
Yii's own query Builder is still very useful, eliminating the process of spelling SQL, today when writing a statement encountered such a problem
= Yii::app () = -> = 0
(! ([' lid '
= ->update (' Emg_
Examples of Use methods:
Set width, equal scale
Copy CodeThe code is as follows:
Include (' simpleimage.php ');
$image = new SimpleImage ();
$image->load (' picture.jpg ');
$image->resizetowidth (250);
$image->save (' picture2.jpg ');? >
Set
Now write things like encapsulation into class ..... Let's call it a bit. I'm not going to tell you how to call.
Copy the Code code as follows:
class resize_image{Private $o _img_width;//Original image widthPrivate $o _img_height;//Original
Think of a problem first:
What does the following code show to the page?
The code is as follows
Die (123);?>
There was a time I always thought the page will show 123, but the practice results tell me that
The proficiency of arrays can sometimes solve many problems. Familiarity with the relevant functions can do more with less. Look at the following functions about arrays are you familiar with it?
Basic functions of array manipulation
The key name
Contact PHP So long, also used three kinds of sort, bubble sort, quick sort, cask sort, today to learn about bubble sort:
So what is bubble sort, like a bubble in a river, a bubble emerges, and here is a number, and his principle is to repeat the
The PHP jump, which redirects the browser to the specified URL, is a very common feature. This feature also has some detail requirements, such as how many seconds to wait after the jump, with no JavaScript to achieve jump, and so on. The following
If you are a Java developer, you are developing and maintaining applications that contain 2000 of classes and use many frameworks. How do you understand the code? In a typical Java Enterprise Project team, most of the engineers who can help you look
First, the Phpmailer version used primarily by Ecmall is too low and does not support encrypted connections.
Then, you have to make some adjustments to the corresponding code.
1. Cover Phpmailer
Please download from the
PHP's unique syntax mixes C, Java, Perl, and PHP's self-innovative syntax. It can perform dynamic Web pages more quickly than CGI or Perl. Dynamic pages made with PHP are embedded in HTML documents to execute, compared to other programming languages,
Notification mechanism implementation, the official only documents do not have the demo code, for the people who did not have to spend a lot of time to do the test.
From the point of view of the document, each notification comes over the data, the
In PHP functions, parameter passing can be divided into two types: value passing and reference passing (also known as address passing).
By default, PHP passes parameters by value. A value-passing parameter invokes a function to pass a constant or a
The method basically comes from the source code in the thinkphp, but I changed it a bit.
Copy CodeThe code is as follows:
/*
* @Description: Delete HTML tags and get plain text. can handle nested labels
*
*/
Class deletehtmltags{
Private
Copy CodeThe code is as follows:
function Download () {
$urlodd =explode ('///', $_post["url"],2),//The link is divided into 2 segments,//front is the first paragraph, followed by the second paragraph
$head =strtolower ($urlodd [0]);//php sensitive
CodeIgniter is an application framework
1, Free: CodeIgniter is authorized by Apache/bsd-style Open Source license, you can use it as long as you wish.
2, simple: CodeIgniter is really lightweight, the core system only need some very small library.
3
Fatal error generally does not need to be captured, but in a complex program, Fatal error can be difficult to handle if an occasional memory shortage occurs.
Like what. Fatal error when you fetch in the MySQL class. It's hard to pinpoint the real
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