This article mainly summarizes the Array and String methods. Each section summarizes the instance code. The yellow box method in the Code does not change the original Array. PS: All instance results are obtained one by one. It has good reference value. If you need a friend, let's take a look at each part of the summary and there is an instance code. The yellow box method in the Code does not change the original array. PS: All instance results are obtained one by one.
Array
-- Common method
STACK: pop () push (multiple items)
Queue: shift () unshift (multiple items)
Sort: sort ([function]) reverse ()
Conversion: toString () toLocateString () join ([separator])
Operation: concat ([multiple items]) slice (start point [, end point]) splice (start point, number of items [, multiple items])
Location: indexOf (item [, start point]) lastIndexOf (item [, start point])
For more articles on the Array and String method for instance parsing, please follow the PHP Chinese network!