Document the problems and workarounds that are encountered in the project.
1. Display Chinese
In the PHP page display, we usually need to add the following code at the beginning to allow our page to display the correct Chinese:
Yes, let
The original address of this addressOutline:1. Introduction2. Code examples3. References1. Introduction
See a piece of code today$timeNew Date Strtotime ($oldTime));Feel a little confused, query the PHP manual, Date function, organized as
Add Date_default_timezone_set (PRC) to the top page of the page; /* Transfer time to Beijing time, php5 default to Greenwich Mean Time */date () A: "AM" or "PM" A: "AM" or "PM" D: A few days, two digits, if not enough to fill 0; from "01" to "D: Day
Today write down Otime ($time, $now) to convert the time format to a timestamp, $time is required. Clear this, want to know more, please continue to look down.3. Date ($format) usageLike what:echo Date (' y-m-d '), Output: 2012-03-22echo Date (' y-m-
Date_default_timezone_get (): Gets the current time zone of PHP date_default_timezone_set (): Sets the current time zone for PHPDate ("Y-m-d h-i-s")time (): Returns the current timestamp (1970-1-1--to date) unit seconds
strtotime (): Converts the
Add Date_default_timezone_set (PRC) to the top page of the page; /* Transfer time to Beijing time, php5 default to Greenwich Mean Time */date () A: "AM" or "PM" A: "AM" or "PM" D: A few days, two digits, if not enough to fill 0; from "01" to "D: Day
What is a VPN?
The English full name of the VPN is "virtual private network", translation comes from "The fictitious specialized network". As the name suggests, virtual private network we can understand him as a virtual out of the enterprise
Domino and relational database interaction is a common aspect of day-to-day project development that every Domino developer has written, and this article makes a simple summary of this.One, the tool article1. Use Lei (Lotus Enterprise Integrator)Lei'
Chinese string manipulation function
The string manipulation functions in PHP3.0 are more important, as follows:
(1) echo,print,printf,sprintf
Used for output strings. If a variable name is substituted in the string, it is replaced with its value.
An analysis of the concept of jdk,jre,ide
1.JDK is what. There's something inside.JDK, the English full name is Java Development Kit (Java Development Kit). It is a collection of tool programs and documents. There are Java worker (. exe executables
js| Solution | problem | chinese | Chinese garbled
Character Inner CodeEach country (or region) prescribes a set of character codes for the exchange of computer information, such as extended ASCII in the United States, Chinese gb2312-80, JIS of
MYSQL Learning Note III: Date and Time Functions1. Get the function of the current date and the function to get the current time/* Get the current date function and get the current time function, return the date in ' Yyyy-mm-dd ' or ' YYYYMMDD '
PHPEcho"Time format 1:".Date("Y-m-d h:i:s"). " ";//2010-06-12 10:26:31Echo"Time Format 2:".Date("Y-m-d h:i:s"). " ";//10-jun-sat 10:43:thEcho"Month, English full name:".Date("F"). " ";//JuneEcho"Month, two digits, 0:".Date("M"). " ";//
One, with 0 echo date (' y-m-d '), 2012-08-08 second, no 0 echo date (' Y-n-j '), 2012-8-8 The following parameters are detailed (reproduced): A-"AM" or "PM" A-"AM" or "PM" D-days, two digits, If less than two digits, the front is 0; such as: "01"
English full name and simple function description of common HTML tags:anchor Defining anchors:abbreviation Defining abbreviations: Defining an Address element:bold define Bold characters: bidirectional override defines the direction in which text is
Text: PHP Gets the current time, timestamp of the various formats summary [datetime]Today write down PHP, how to get the current system time, time stamp, and note the meaning of various formats, can be flexible.1. Get the current Time method date
1. Get the current Time method date ()It's simple, that's the way to get time,The format is: Date ($format, $timestamp),Format is formatting- requiredTimestamp is timestamp – The parameter can be filled.Like what:echo Date (' YMD '), Output: 2012032
Here are some of the time functions in PHP:(1) DateUsage: Date (format, [time]);If there is no time parameter, the current time is used. The format is a string in which the following characters have special meanings:U is replaced by the number of
Today write down PHP, how to get the current system time, time stamp, and note the meaning of various formats, can be flexible.1. Get the current Time method date ()Quite simply, this is the way to get the time, in the format: Date ($format,
This article is to share the content of PHP in the date () and time () function of the application, the need for friends can refer to
1, the current timestamp (unit: seconds)
Description: The time () function returns the number of seconds of the
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.