Tagged articles
2 articles
Page 1 of 1
php Courses
php Courses
Sep 3, 2025 · Backend Development

Master PHP’s array_values(): Reindex Arrays Easily

This article explains how PHP’s array_values() function returns a new array with sequential numeric keys, demonstrates its use with both indexed and associative arrays, and highlights that the returned array is a copy, not a reference, allowing safe modifications.

ArrayBackendReindex
0 likes · 4 min read
Master PHP’s array_values(): Reindex Arrays Easily
php Courses
php Courses
Aug 11, 2023 · Backend Development

Using PHP krsort() to Reverse‑Sort Associative Arrays

This article explains the PHP krsort() function, its syntax, optional sorting flags, provides a step‑by‑step example of sorting an associative array in reverse order, discusses important considerations, and shows practical scenarios where reverse key sorting is useful in backend development.

Sortingassociative-arraykrsort
0 likes · 4 min read
Using PHP krsort() to Reverse‑Sort Associative Arrays