Remove elements from an array and replace it with new elements: |
June 26, 2017, 4:41 p.m. |
With both string and integer keys: |
June 25, 2017, 2:53 p.m. |
With the preserve parameter set to true: |
June 25, 2017, 2:53 p.m. |
Using a negative start parameter: |
June 25, 2017, 2:52 p.m. |
Start the slice from from the second array element, and return only two elements: |
June 25, 2017, 2:51 p.m. |
Start the slice from the third array element, and return the rest of the elements in the array: |
June 25, 2017, 2:50 p.m. |
Using numeric keys: |
June 25, 2017, 2:50 p.m. |
Remove the first element (red) from an array, and return the value of the removed element: |
June 25, 2017, 2:49 p.m. |
Search an array for the value 5 and return its key (notice the ""): |
June 25, 2017, 2:48 p.m. |
Search an array for the value "red" and return its key: |
June 25, 2017, 2:48 p.m. |
Return the original array, the reversed array and the preserved array: |
June 25, 2017, 2:47 p.m. |
Return an array in the reverse order: |
June 25, 2017, 2:46 p.m. |
Differences between array_replace() and array_replace_recursive(): |
June 25, 2017, 2:45 p.m. |
Multiple arrays: |
June 25, 2017, 2:45 p.m. |
Replace the values of the first array with the values from the second array recursively: |
June 25, 2017, 2:44 p.m. |