Array is one of the most important and basic terms in PHP Language. Almost all standard PHP programs use array data structure. So, those who want to be expert in PHP programming should have good understanding on PHP array. In my last article, I explained some PHP basic fundamentals like PHP variables, PHP conditional statements, PHP looping statements and PHP function. In this article I will explain PHP array data structure with example. PHP Array PHP array is a special variable that can hold one or more value at a time in a single variable. Multiple values from an array are retrieved with array indexes. For example, the following PHP array contains five numeric values in a single variable. $numbers = array(10, 20, 30,40,50); These array values are retrieved using array indexes. Array index is by default start with 0 and increase by one if we do not define array index explicitly. How to declare PHP array properly and how to retrieve array elements will be discussed elaborately in the following sections. How to Declare PHP Array PHP has a built-in function named array() which is used to create array data. The basic structure of declaring a PHP array is: $a […]
- PHP Operators and Expression Explanation Apr 5, 2020
- PHP Variable Usage inside of Function Jun 20, 2020
- PHP Array Explanation Oct 2, 2020
- PHP Conditional Statements Explanation May 4, 2020
- PHP Basic Program with Example Apr 1, 2020
- PHP Add Element to Array with Built-in Functions Nov 7, 2020
- PHP Array Explanation Oct 2, 2020
- Function Call by Value and Call by Reference in PHP Sep 15, 2020
- PHP Variable Usage inside of Function Jun 20, 2020
- PHP Function Explanation May 26, 2020
- PHP Array Explanation with Example - iTechSheet on PHP Conditional Statements Explanation
[…] on PHP array. In my last article, I explained (...)
- PHP Array Explanation with Example - iTechSheet on PHP Data Type and Variable Explanation
[…] good understanding on PHP array. In my last (...)
- tadalafil 20 mg on PHP Operators and Expression Explanation
Hello, I check your blog regularly. Your humoristic style (...)
- Function Call by Value and Call by Reference in PHP - iTechSheet on Contact
[…] if you face any problem to understand these (...)
- Function Call by Value and Call by Reference in PHP - iTechSheet on PHP Variable Usage inside of Function
[…] to create user defined function with example was (...)