Tagged articles
6 articles
Page 1 of 1
php Courses
php Courses
Sep 15, 2025 · Backend Development

Master PHP’s array_values(): Reindex Arrays Easily

This article explains how PHP's array_values() function reindexes both indexed and associative arrays, provides clear code examples, demonstrates that it returns a new array without affecting the original, and highlights practical scenarios where reindexing is useful.

ArrayReindexarray_values
0 likes · 5 min read
Master PHP’s array_values(): Reindex Arrays Easily
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
Mingyi World Elasticsearch
Mingyi World Elasticsearch
Aug 27, 2025 · Backend Development

Beyond Reindex: Alternative Ways to Delete Fields from an Elasticsearch Index

When legacy or sensitive fields bloat an Elasticsearch index, rebuilding the index with reindex can be costly, so this article examines why fields cannot be removed directly and presents four practical, non‑reindex approaches—_source filtering, index templates, ingest pipelines, and alias‑based gradual migration—detailing their trade‑offs and implementation steps.

AliasElasticsearchField Deletion
0 likes · 12 min read
Beyond Reindex: Alternative Ways to Delete Fields from an Elasticsearch Index
php Courses
php Courses
Apr 3, 2023 · Backend Development

Reindexing PHP Arrays: Using array_values, array_merge, and Manual Loops

This guide explains how to transform a PHP array with non‑sequential keys into a zero‑based sequential array by using the built‑in array_values function, the array_merge function, and a manual foreach loop, providing code examples and output for each method.

ArrayBackendReindex
0 likes · 3 min read
Reindexing PHP Arrays: Using array_values, array_merge, and Manual Loops