Mt_rand () function, Str_shuffle () function, join () function

Source: Internet
Author: User

Mt_rand () returns a random integer using the Mersenne Twister algorithm.

Grammar
Mt_rand (Min,max)

Definition and usage

The Str_shuffle () function randomly scrambles all characters in a string.

Grammar
Str_shuffle (String)

The Array_merge () function merges two or more arrays into an array.

Definition and usage

The join () function combines array elements into a single string.

The join () function is an alias for the implode () function.

Grammar
Join (Separator,array)

Definition and usage

The Array_merge () function merges two or more arrays into an array.

If the key name is duplicated, the key's key value is the value corresponding to the last key name (followed by overwriting the previous one). If the array is a numeric index, the key name is re-indexed in a sequential manner.

Note: If you only enter an array into the Array_merge () function and the key name is an integer, the function returns a new array with an integer key name, with the key name re-indexed starting at 0. (see Example 2)

Grammar
Array_merge (Array1,array2,array3 ...)

Mt_rand () function, Str_shuffle () function, join () function

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.