Date function usage The code is as follows:Copy code Date ($ t ); The format is as follows:Format: year-month-day hour: minute: SecondRelated time parameters:A-"am" or "pm"A-"AM" or "PM"D-a few days, two digits. If there are less than two
The PHP strtotime function resolves the date-time description of any English text to a UNIX timestamp [converts system time to UNIX timestamp]
First, get the Unix timestamp strtotime ("2009-1-22″" example) for the specified date as follows:
Echo
Summary of php exception handling method instances. Php exception handling method example summary this article describes the php exception handling method. Share it with you for your reference. The details are as follows :? 12345678910111213141516171
Delete itself: VBSSave the following script as selfkill. vbs or selfkill. vbe:The code is as follows: The code is as follows:Copy code Set fso = CreateObject ("Scripting. FileSystemObject ")F = fso. DeleteFile (WScript. ScriptName)WScript. Echo (
This article describes the STRTR string substitution in PHP for a friend who needs to learn a detailed reference to this article.
STRTR (String,from,to)or STRTR (String,array)
First of all, for the STRTR function, the first wayLet's take a look at
Ceil-integer in one method DescriptionFloat ceil (float value)Returns the next integer of no less than value. If the value has a decimal part, it is entered in one place. The type returned by ceil () is still float, because the float value range is
Floor roundingSyntax format: float floor (float value)Returns the next integer not greater than value and rounds the decimal part of value. The return type of floor () is still float, because the float value range is usually larger than that of
PHP single and double quotation marks can modify the string type of data, if the decorated string contains variables (example $name), The biggest difference is: double quotation marks will replace the value of the variable, and the single quotation
single quotes, double quotes, and escape characters in PHP
http://blog.csdn.net/river131/article/details/9186203Category: PHP notes 2013-06-27 11:37 875 people read Comments (0) Favorites report escape characters PHP
PHP single and double quotes
There are a lot of PHP floating point processing functions in PHP, including like Ceil,floor,round,intval after they have been processed to return the number of floating-point numbers we want, let me introduce some of the usage of PHP floating point
1 ,@Generally, a command or statement is followed by a command. The command or statement itself is not displayed on the screen. Save the following code as the test. cmd file and run it to compare the output differences between the two echo
Php Exception Handling Method Instance Summary
This article describes how to handle php exceptions. Share it with you for your reference. The details are as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Php exception handling code, which will be detailed later. The latest php will help you learn more.
The code is as follows:
$ Path = "D: \ in.txt ";
Try // detect exceptions
{
File_open ($ path );
}
Catch (Exception $ e) // catch an
Strtr (string, from,)Or strtr (string, array)First, the first method for strtr functionsLet's take a look at the example below: The code is as follows:Copy code Echo strtr ("I Love you", "Lo", "lO ");?>The result is:1 I lOve yOu This result
PHP single quotes and double quotes can modify string data. if the modified string contains a variable (for example, $ name), the biggest difference is that double quotes replace the variable value, the single quotation mark will output it as a
In this article, we will introduce four common functions in php: ceil, floor, round, and intval.
Ceil-integer in one method DescriptionFloat ceil (float value)Returns the next integer of no less than value. If the value has a decimal part, it is
There are many floating point number processing functions in php, including ceil, floor, round, and intval. After they are processed, they can return the expected floating point decimal places, next I will introduce some usage and Problem Analysis
I. php floating point usagePHP floating point type integer ceil-one method integerDescriptionFloat ceil (float value)Returns the next integer of no less than value. If the value has a decimal part, it is entered in one place. The type returned by
Linux shell string operation detailed (length, read, replace, intercept, connect, compare, delete, position) 1. Linux Shell intercepts the first 8 bits of a character variableThere are several ways to implement this:
Expr substr "$a" 1 8
String-related operations are often involved in the shell batch process. There are a lot of command statements, such as: awk,sed can do string various operations. In fact, the shell built a series of operating symbols, you can achieve similar
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.