2015.1 knowledge points and functions used for writing message boards, and 2015.1 message boards. 2015.1 knowledge points and functions used for writing the message board, 2015.1 message board 1: Time function and uniqid () 1: uniqid (): generate a unique id, the length of the string returned by no parameter is 13, the knowledge points and functions used when the parameter is 2015.1 For message board writing, and the 2015.1 message board
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.
Tips: knowledge points and functions. 2015.1 message board 1: Time function and uniqid () 1: uniqid (): generate a unique id. the length of the string returned by no parameter is 13, the parameter is...