PHP Get Week method Daquan Simple Introduction
PHP Gets the week method Daquan simple introduction, PHP week to get code:
1 Date ("L");
2//data can get English for weeks like Sunday
3 Date ("W");
4//This can get digital weeks like 123, note 0 is
JSON application method in PHPHow to use JSON. PHP5.2 has built-in support for JSON. Of course, if it is earlier than this version, there are many PHP versions available on the market, and it will be OK as soon as the next version is used. Now we
Introduction to _remap methods in PHP CodeIgniter
In the CodeIgniter, in fact, there is a good way to ignore the Controller layer processing,
That's remap, here's a brief introduction.
In fact, in the CI URL control mode representation, such
This article mainly introduced in PHP to convert signed integer to unsigned integer method, the conversion method is very simple, this article directly gives the conversion method, the need for friends can refer to the
In a short address project,
There are several ways to traverse an array:
1, consecutive index of the array:
It is easy to traverse a contiguous array because the index of the array is contiguous (0 1 2 ...), so we can first compute the number of elements in the group with
The Magic method is called in the specified case, but the method body in the Magic method needs its own definition, and the return value is also its own definition!1.__construct () when an object is instantiated, this method of the object is called
The function of PHP page jump is to jump one page to another page in the website. For a friend who has just learned the language of PHP, it is the basic method that must be mastered.
Page jumps may be triggered by a user clicking on a link, a
The Magic method is unique to PHP's object-oriented features. They are triggered in a particular case, they start with a double underscore, you can interpret them as hooks, and you can easily implement the PHP object-oriented overload using the
The last two days of the project needs, as the server is developing, the client progress slightly faster, no server to be linked. So I went to work, with PHP quickly wrote a number of web pages, as a test pile program, seven or eight web interface,
The time () function returns the current period. The main function of the mktime () function is not to return the current time, but to format the time. Although the effect of writing mktime () without any parameters such as Echo mktime () and Echo
1. unset ($_session[' xxx ') deletes a single session,unset ($_session[' xxx ')) to unregister a registered session variable. The effect is the same as Session_unregister ().
Session_unregister () has been discarded in the PHP5.
Unset ($_session)
We use the simplest method directly with Php+mysql to achieve, the method is as follows.
The code is as follows
Copy Code
Include (' db/db.php '); Include a library class$db = new db ();$result = mysql_query (' select *
In the project to use ziparchive unzip the zip file, the initial test environment in the Windows platform, test pass, into the LINUX+NGINX environment when the problem (in the ZIP package is a total of more than 300 files and folders, mostly with
In php, we will use three functions to generate an html page: ob_start (), ob_get_contents (), and ob_end_clean (), and then generate the obtained content to the fopen function. example ,... in php, we will use three functions to generate an html
Nowadays, more and more people prefer to access the Internet, and more people have their own personal homepages. With the emergence of various automated software tools, making web pages easier and easier. However, because special effects are
We develop the RESTful interface of PHP will know there is put method update resources, that is how to use put this HTTP method to update resources, this article mainly share with you in PHP the RESTful put method parameter submission and receive
When uploading an image, I want to display the image by year, month, or day based on the current date, so I have the following code {code ...} the above code is successfully tested in a local testing environment (PHP + apache + MySQL. However, when
Phpmailer Introduction Step One: Make QQ mailbox can send mail step two: Enable PHP to use QQ mailbox to send mail step three: Write the sending Code thinkphp use phpmailer send mail, This article will be through the QQ mailbox as an example to
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.