PHP Learning, 2016-5-11 PHP framework to learn PHP learning Materials Learning PHP Good

Source: Internet
Author: User
Tags learn php md5 digest md5 hash php framework
1. String MD5 (string str[,bool Raw_output = false])

Use? RSA Data security Company's MD5 message algorithm calculates the MD5 hash value of str.

    • Raw_output: If the optional raw_output is set to TRUE, then the MD5 Digest will be returned in the original binary format with a length of 16 bytes. PHP 5

2. String Uniqid ([string prefix= ""[,bol more_ Entropy = false]])

Gets a unique ID with a prefix, based on the number of microseconds in the current time

    • Prefix: Useful parameters. For example, if a unique ID can be generated on multiple hosts in the same microsecond.
      Prefix is empty, the string length returned is 13.
    • More_entropy is TRUE, the string length returned is 23.

In a Cygwin environment, more_entropy must be set to TRUE in order for this function to work.

Cygwin是一个在windows平台上运行的类UNIX模拟环境

3. Mixed Microtime ([bool $get _as_float])

Microtime () The current Unix timestamp and the number of microseconds. This function is available only under operating systems that support Gettimeofday () system calls.

    • If called without optional arguments, this function returns a string in the format "msec sec", where the SEC is the number of seconds since the Unix era (0:00:00 January 1, 1970 GMT) and msec is the microsecond portion. The two parts of a string are returned in seconds.
    • If the Get_as_float parameter is given and its value is equivalent to True,microtime (), a floating-point number is returned. php5

'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
  • '). Text (i)); }; $numbering. FadeIn (1700); }); });

    The above on the introduction of PHP learning, 2016-5-11, including PHP learning, 2016 aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.