This article will use PHP to round up the numbers to keep n decimal digits, as well as using PHP for the number of rounding method to do a small sum.
(1) PHP retains three decimal places and rounded
The code is as follows
Copy Code
Method One
Specific codeBackup
The code is as follows
Copy Code
@echo Off & setlocal enableextensions ::----------Configuration Items---------- :: Backup placement path, plusSet Backup_path=d:backup :: Database name to
PHP time is generally used in the form of large integers is stored and called. The time () function returns a Unix timestamp for the current time.
Definitions and usage
The time () function returns a Unix timestamp for the current time.
Grammar
The only test two verified
Linux when you choose to use Chinese, when using SSH, TELNET login Operation command will appear in Chinese garbled; pass the test under RHEL5
Modify the/etc/sysconfig/i18n to read as follows: [root@php ~]#
Just show up:
The code is as follows
Copy Code
::===============@echo offWMIC process where name= "explorer.exe" Get HandlePause::===============
Pass to Variable:
The code is as follows
Copy
First, build WiFi sharing hotspot
The first step or according to the Convention, first in our notebook computer to build a WiFi wireless sharing hotspot, through the integration of BAT Program files can be one-step, high degree of autonomy, less
1. When clean and divided into multi-level directory storage. At least I can mitigate I/O pressure. The following method allows you to schedule tasks with the system. Run it once a week. Empty cookies seven days ago
First, use PHP to automatically
DescriptionLinux's own mail can implement external SMTP mail. There is no need to configure the Postfix,sendmail mail server locally, it does take a bit of time to configure the package.
Realize:1. Turn off the SendMail service or postfix service
+3 Day:
echo date (' y-m-d h:i:s ', Strtotime (' +3 Day '));
+3 days:
echo Date (' y-m-d h:i:s ', Strtotime (' +3 days '));
The results of the output are the same.
The following are similar usages
Strtotime (' +1 Day ');
Strtotime (' +3 Day
Use the function date () to implement the displayed in the format: year-month-day hours: minutes: secRelated Time parameters:A-"AM" or "PM"A-"AM" or "PM"D-A few days, two digits, if less than two digits before the 0; such as: "01" to "31"D-Days of
We mention that the Strtotime function is going to be a bit of a situation when we use Strtotime ("-1 month") for one months today.
This article also leads to writing this article, which includes the following: some usages of the strtotime function
Transferred from: https://www.cnblogs.com/frankielf0921/p/5933127.htmlThe first type: Create a new batch file Backup.dat, enter the following code:
The code is as follows
Copy Code
net stop MySQLxcopy "C:/Program
1PHP2 3 /**4 * Function Name: SqlTool.class.php5 * Function function: PHP to delete the database and change the operation class6 * Function Zhang Zhengui7 * Creation time: 2015-01-058 * Modified time:9 */Ten Header("Content-type:text/
This article mainly introduces, the simple construction LNMP environment, own environment, own decisionPreparation requirements: The new LIUNX environment, this article uses the centerOS6.0Nonsense not much to say, look directly at the steps:1. Open
The first type: Create a new batch file Backup.dat, enter the following code:
The code is as follows
Copy Code
net stop MySQLxcopy "C:/Program files/mysql/mysql Server 5.0/data/piaoyi/*.*" d:/db_backup/%date:~0,10%
Json-format data is the data we always use in application development. json data is used when you submit data with jquery or when you submit data with APIs, so how does PHP return json data to jquery? I will introduce it to you.
To operate json data
String processing has a large number of character or string processing functions in php. Let's summarize the learning notes on PHP string processing today, this is not only a learning note, but also has great advantages in developing
Php code should be secure, structured, standardized, and adaptive. The excellent PHP code should be structured. The excellent PHP code should be standardized. The excellent PHP code should be adaptive. Good PHP code should be safe. The excellent PHP
Basic knowledge of PHP (1 ). These are written to junior PHP programmers or those who are not very familiar with PHP. the old bird may float. You are welcome to add and comment, and accept reasonable comments and criticisms. Some of these PHP
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.