Topics
PHP Array
About this topic: Articles tagged __TAG__
Showing 49 articlesRelated tags
Topics
Articles
Showing 49 articles
How-tos
How to Check if Key Exists in Array in PHP
Your script may need the check if particular key exist or not to perform operation on value.
↗
How-tos
How to Get Last Array Element in PHP
This article will explain how to extract the last element of an array in PHP
↗
How-tos
How to Convert XML Into an Array in PHP
This tutorial introduces how to convert XML into an array in PHP
↗
How-tos
How to Push Both Value and Key Into PHP Array
This article introduces how to push both value and key into a PHP array
↗
How-tos
How to Use Foreach Loop in Multidimensional Array in PHP
This tutorial introduces how to use a foreach loop in a multidimensional array in PHP.
↗
How-tos
How to Filter Arrays in PHP
This tutorial will teach different methods you can use to filter arrays in PHP. The methods will use PHP built-in functions like array_intersect_key, array_filter, array_keys, and …
↗
How-tos
How to Check if Array Contains a Value in PHP
This tutorial demonstrates how to check if array contains a particular value using a built-in function in PHP.
↗
How-tos
Array_map and array_walk Functions in PHP
This article shows us how the array_map and array_walk functions can modify elements in an array.
↗
How-tos
How to Print Array Keys in PHP
This tutorial will teach you different methods you can use to print the keys of PHP arrays. These methods will use the foreach loop and the array_keys function.
↗
How-tos
How to Push Items to Associative Array in PHP
In this tutorial, we will see how you can add items or elements into an associative array in PHP.
↗
How-tos
How to Group Arrays in PHP
This tutorial demonstrates how to group elements of a multidimensional array according to a particular column in PHP.
↗
How-tos
How to Concat PHP Arrays
This tutorial demonstrates how to concat two or more arrays in PHP.
↗
How-tos
How to Add Element to an Associative Array in PHP
This tutorial demonstrates how to add an element to an associative array in PHP.
↗
How-tos
How to Display Array Values in PHP
This tutorial demonstrates how to display the values of an array using different methods in PHP.
↗
How-tos
How to Flatten Array in PHP
This tutorial demonstrates how to flatten multidimensional arrays in PHP.
↗
How-tos
How to Get Random Array Item in PHP
This tutorial introduces how to get a random item from an array in PHP.
↗
How-tos
How to Compare Two Arrays in PHP
This tutorial explains and details how to compare two arrays using operators and functions in PHP.
↗
How-tos
How to Loop Through Associative Array in PHP
This tutorial introduces how to loop through an associative array and get the key in PHP.
↗
How-tos
How to Convert CSV File to Array in PHP
This tutorial explains how to convert the popular CSV file to array within PHP with the help of built-in functions.
↗
How-tos
How to Reverse Array in PHP
This tutorial demonstrates how to reverse an array in PHP.
↗
How-tos
How to Remove Empty Array Elements in PHP
This article introduces how to remove empty array elements in PHP. It includes array_filter() function, array_diff() function and unset() function.
↗
How-tos
How to Delete an Element From an Array in PHP
This article introduces how to delete an element from an array in PHP. It includes unset() function, array_splice() function and array_diff() function
↗
How-tos
How to Echo or Print an Array in PHP
This article introduces how to echo or print an array in PHP. It includes foreach loop, print_r() function and var_dump() function.
↗
How-tos
How to Determine the First and Last Iteration in a Foreach Loop in PHP
Different ways of getting the first and last item in a foreach() loop using different versions of PHP, including counter in all PHP versions and array_key_first() and …
↗
No articles found
Try clearing the filters.