PHP functions Learn 20 daily (fifth day)

Source: Internet
Author: User

1,array_push () presses one or more elements into the end of the array

2,array_pop gets the last element of the array and removes it from the original array.

3,shuffle () The array is scrambled, preserving the original key name

4,count () calculates the number of elements in an array, or the number of properties of an object

5,array_flip () returns an array after a key-value reversal

6,array_keys () gets all the keys of the array and makes up an array

7,array_flip () returns an array after a key-value reversal

8,array_values () returns all the values in the array, forming an array

9,array_reverse () Reverses the array and returns

10,array_rand () randomly extracts one or more from an array, note that the key name

11,each () Returns the key value pointed to by the current pointer of the array and moves the pointer to the next

12,array_unique () to delete duplicate values in the array

13,sort () Sorts the given array in ascending order without returning the key name

14,asort () sorts the array, while maintaining the index relationship

15,arsort () To reverse-sort an array while maintaining an index relationship

16,ksort () sorts an array by key name

17,krsort () An array in reverse order by key name

18,natsort () array sorted by natural sort algorithm

19,natcasesort () An array of natural sorting algorithms, case insensitive

20,fopen () Open file or URL address

PHP functions Learn 20 daily (fifth day)

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.