This article introduces the PHP list (), each (), reset () function application in detail, there is a need to know friends can refer to.
1.list function
The list function assigns the values in the array to some variables, with the following
First, install sublime Text 3Package Control InstallationInstallation InstructionsShow Console, a command input box will appear at the bottom, then copy the above command to the input box, enter, wait, the installation is successful.Second, plug-in
The date function in PHP can be implemented in the format of dates and time display, this is also a few examples we commonly used, the following to introduce to you friends, I hope this tutorial is helpful.
Time () function
The time () function
This article mainly describes the CodeIgniter multi-file Upload use example, the need for friends can refer to the following
The code is as follows:
0, "max_width" = 0, "max_height" 0, "Max_filename" + 0, "allowed_types" and "", "File_temp" and "",
Have seen a lot of various prevention forms repeatedly submitted JS or jquery program, but this is just a simple method, if we do not submit a form from this page, directly find the page to accept the data this JS processing method is invalid, below
Copy CodeThe code is as follows:
/* Simple use method and operation of filter () */
Require_once ("zend/loader.php");string-to-lowercase classes and uppercase classes that introduce filterZend_loader::loadclass
fopen () method
The simplest way is to use fopen (), to see if the file can be opened, can hit the file of course exists.
The fopen () function opens the file or URL. If the open fails, the function returns FALSE.
Syntax: fopen
PHP detects if the server SSL is turned on and how SSL is turned on for sharing.
(1) Detect if SSL is turned on by the server
Check the OpenSSL section of the page, if the value of OpenSSL support for this column is enabled, SSL is turned on,
There are many functions in PHP that can be used to iterate over an array, such as: For statement, list, each, foreach, four functions, which is also a few of the main functions of traversing the array in PHP, let me introduce to you.
foreach
Contract several directories
/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.iniOne, the php-fpm start parameterCopy CodeThe code is as follows:#测试php-FPM
PHP Common Array function Introduction, PHP array function
In the programming of the manual is not necessary, so you will learn to use the existing things, such as PHP in the array processing function has a sorting function, why still writing is to
PHP Learning Notes (a) easy to learn php,php learn notes
Target planning:
With the first lesson, we can learn about the PHP environment.
1. Understanding of the environment:
2. Access method:
3. Modify the code and view it.
4. Use of variables
5.
PHP Tag Cloud Production--data table structure and query method
For example: If you need an article that contains the tag table with the ID of tagname, which is the tag with the ID of "--", then add the article with the $result =implode (",", $_post[
Apache modifies the port number to modify the root directory to build multiple websites, Apache port number
Modify Apache Port numberSelect Httpd.conf under Apache, look for: Listen, you will see#Listen 12.34.56.78:80Listen 80Change 80 to 90, save
PHP gets the MySQL data table field name and details method, MySQL field
First we need to understand the SQL statements that query MySQL database/table related information:
Copy the Code code as follows:SHOW DATABASES//Lists the MySQL Server
PHP format timestamp display friendly time implementation ideas and code, PHP ideas
All the time in the project was shown as 2014-10-20 10:22 and it looked stiff. In the microblogging, QQ space and other sites are usually displayed for a few
PHP 4 functions to output content to the browser summary, PHP browser output function
Copy the Code code as follows:/** 0x01:print () statement* int print (arguments);The * print () statement outputs the data passed in to the browser*/Print ("
I
Export data to an XLS-formatted Excel file using Phpexcel
In the development of a business license management system at the time need to export data to Excel files, although a year ago to do a group of ERP when used to import and export, but too
PHP Web system multi-domain login failure resolution, Phpweb
The following is a simple logical structure, for the formal system needs to do specific processing.
It should be noted here: encryption and decryption must be done to verify the security.
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.