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

Master PHP’s array_search(): Find Keys Efficiently in Associative Arrays

This article explains how PHP's array_search() function locates the key of a given value in an array, details its parameters, return values, strict mode behavior, and provides clear code examples illustrating both successful searches and handling of missing elements.

array_searchassociative arraybackend-development
0 likes · 4 min read
Master PHP’s array_search(): Find Keys Efficiently in Associative Arrays
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 27, 2024 · Backend Development

Using mysqli_fetch_assoc to Retrieve Rows as Associative Arrays in PHP

This article explains how to connect to a MySQL database in PHP, execute a SELECT query, and use the mysqli_fetch_assoc function to fetch rows as associative arrays, including sample code and notes on handling multiple rows and error checking.

BackendMySQLiassociative array
0 likes · 4 min read
Using mysqli_fetch_assoc to Retrieve Rows as Associative Arrays in PHP
php Courses
php Courses
Aug 12, 2024 · Backend Development

Using PHP array() Function to Create Indexed and Associative Arrays

This article explains the PHP array() function, demonstrates how to create both indexed and associative arrays with clear examples, outlines important usage notes, and provides sample code for various array types to help developers master array creation in PHP.

ArrayBackendPHP
0 likes · 5 min read
Using PHP array() Function to Create Indexed and Associative Arrays
php Courses
php Courses
May 28, 2024 · Backend Development

Using PHP’s array_flip() Function to Swap Keys and Values

This article explains PHP's array_flip() function, showing its syntax, behavior with duplicate values, and practical examples that demonstrate how to exchange array keys and values for tasks such as reverse lookups and data manipulation.

ArrayBackendarray_flip
0 likes · 5 min read
Using PHP’s array_flip() Function to Swap Keys and Values
php Courses
php Courses
Feb 18, 2024 · Backend Development

Using PHP array_shift() to Remove the First Element from an Array

This article explains the PHP array_shift() function, shows its syntax, demonstrates how it removes and returns the first element of both indexed and associative arrays, and highlights that the original array is re‑indexed after the operation.

Arrayarray_shiftassociative array
0 likes · 4 min read
Using PHP array_shift() to Remove the First Element from an Array
php Courses
php Courses
Jul 17, 2023 · Backend Development

Understanding PHP's array_combine() Function: Syntax, Use Cases, and Code Examples

This article explains PHP's array_combine() function, detailing its syntax, parameters, return values, error handling, and demonstrates multiple practical applications such as creating and updating associative arrays, processing form data, and converting two‑dimensional arrays, with complete code examples.

Code ExamplesPHParray_combine
0 likes · 4 min read
Understanding PHP's array_combine() Function: Syntax, Use Cases, and Code Examples
Laravel Tech Community
Laravel Tech Community
Mar 19, 2021 · Backend Development

PHP localtime() Function – Retrieve Local Time as an Array

The PHP localtime() function returns the local date and time as an array, optionally associative, mirroring the C library function, and accepts an optional Unix timestamp parameter, with examples showing both numeric and associative array outputs.

Arrayassociative arraydatetime
0 likes · 3 min read
PHP localtime() Function – Retrieve Local Time as an Array
Laravel Tech Community
Laravel Tech Community
Dec 18, 2020 · Backend Development

Using PHP key() to Retrieve Keys from Associative Arrays

This article explains the PHP key() function, its parameters and return values, and demonstrates with a complete example how to iterate over an associative array to output the keys whose values match a specific condition, such as finding all keys for the value "apple".

BackendPHPTutorial
0 likes · 2 min read
Using PHP key() to Retrieve Keys from Associative Arrays