diff --git a/reference/array/functions/array-shift.xml b/reference/array/functions/array-shift.xml index 97dd894397..34baa6c344 100644 --- a/reference/array/functions/array-shift.xml +++ b/reference/array/functions/array-shift.xml @@ -1,5 +1,5 @@ - + @@ -18,8 +18,9 @@ array_shift shifts the first value of the array off and returns it, shortening the array by one element and moving everything - down. If array is empty (or is not an - array), &null; will be returned. + down. All numerical array keys will be modified to start counting from zero + while literal keys won't be touched. If array is empty + (or is not an array), &null; will be returned. diff --git a/reference/array/functions/array-unshift.xml b/reference/array/functions/array-unshift.xml index 4f10a491f6..c154fc1b8b 100644 --- a/reference/array/functions/array-unshift.xml +++ b/reference/array/functions/array-unshift.xml @@ -1,5 +1,5 @@ - + @@ -22,7 +22,8 @@ array_unshift prepends passed elements to the front of the array. Note that the list of elements is prepended as a whole, so that the prepended - elements stay in the same order. + elements stay in the same order. All numerical array keys will be + modified to start counting from zero while literal keys won't be touched. Returns the new number of elements in the