: This article mainly introduces the knowledge points and functions used to write the message board in 2015.1 --- & gt; Summary. For more information about PHP tutorials, see. I. time functions and uniqid ()
1: uniqid (): generate a unique id. the length of the string returned by no parameter is 13, and the value of a parameter is 23.
2: php functions that convert time and timestamp
①: Time () returns the current unix timestamp microtime () returns the current unix timestamp and number of microseconds
②: Date ('Y-m-d H: I: S', time () format a local time/date
③: Strtotime () converts the description of the date and time of any date into a unix timestamp.
II. jump and redirection of the tp framework
1: page jump
①: Success ('prompt information', 'Jump address', 'Jump time'); default jump address: $ _ SERVER ['http _ referer'] default wait time: 1 second
②: Error ('prompt information', 'Jump address', 'Jump time'); default jump address: javascript: history. back (-1) default wait time: 3 seconds
2: Page redirection
Redirect ('URL address', 'time', 'prompt information') only wants to redirect a specified URL address, rather than the operation method of a module. The usage is the same as that of the U function.
The above describes the knowledge points and functions used to write the message board in 2015.1 ---> summary, including some content, hope to be helpful to friends who are interested in the PHP Tutorial.