PHP Tutorial Array

Introduction

  1. PHP Array
  2. PHP Create Indexed Array
  3. PHP Create Associative Arrays
  4. PHP Array Operator
  5. PHP Access Array Element
  6. PHP Change Array Element
  7. PHP Create Array using Square Bracket
  8. PHP Array Element Loop Through
  9. PHP Array foreach loop
  10. PHP Change Array Values with foreach
  11. PHP Array Multidimensional
  12. PHP Access Element in Multidimensional Array
  13. PHP Loop Through Multidimensional Array

Index

  1. Add to an array using index in PHP
  2. Index arrays with string in PHP

Demo

  1. Cast arrays to other data type in PHP
  2. Fill an array with values, specifying keys in PHP
  3. Return Array from a function in PHP
  4. Use an array to translate value in PHP
  5. Use the + with array in PHP

Length

  1. Count the array recursively in PHP
  2. Get The Length of an Array with count() Function in PHP
  3. Return the number of elements in an array in PHP

Create

  1. Create a multidimensional array in PHP
  2. Create an array from variables and their values in PHP
  3. Create an array to store multiple values in one single variable in PHP
  4. Create an array with string that does not match a variable, and an array of variable names in PHP
  5. Create an associative array in PHP
  6. Create and reference a multidimensional array in PHP
  7. Create indexed array, assign three elements, print a text containing the array values in PHP
  8. Create multi-dimensional arrays in PHP
  9. Initialize an array in PHP

Loop

  1. Loop Through a Two-Dimensional Array in PHP
  2. Loop Through an Indexed Array in PHP
  3. Loop string items in an array in PHP
  4. Loop through and print all the values of an indexed array in PHP
  5. Step Through an Array in PHP
  6. Use each() with a while loop in PHP

Output

  1. Output Arrays with print_r() in PHP
  2. Output the value of the current element in an array in PHP
  3. Output two dimensional array with print_r in PHP

Reference

  1. Reference array element in PHP
  2. Reference arrays in string in PHP




















Home »
  PHP Tutorial »
    Data Types »




Array
Array Associative
Array Util
ArrayObject
Data Types
Date
Date Format
DateTime
Number
String
String Escape
String Filter
String HTML
String Type
Timezone