2015.1 knowledge points and functions used for writing the message board, 2015.1 message board _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.