About 354,000 results
Open links in new tab
  1. PHP Arrays - W3Schools

    In this tutorial you will learn how to work with arrays, including: Array items can be of any data type. The most common are strings and numbers (int, float), but array items can also be …

  2. PHP: Arrays - Manual

    Accessing array elements with square bracket syntax. Array elements can be accessed using the array[key] syntax.

  3. PHP Arrays - GeeksforGeeks

    Apr 12, 2025 · In PHP, arrays can be created using two main methods: 1. Using the array () function. The traditional way of creating an array is using the array () function. 2. Using short …

  4. Types of Arrays in PHP - Online Tutorials Library

    In PHP, there are two ways to define an array: first using the array () function and second using the square brackets. The built-in array () function uses the parameters given to it and returns …

  5. PHP Arrays - PHP Tutorial

    PHP provides a more convenient way to define arrays with the shorter syntax [], known as JSON notation. The following example uses [] syntax to create a new empty array: <?php …

  6. PHP Array Cheat Sheet: A Complete Reference - Sling Academy

    Jan 13, 2024 · Basic Array Operations. PHP arrays can hold multiple values under a single name. Here are the basics: Creating Arrays: $array = array(value1, value2, ...); $array = [value1, …

  7. How to Work with Arrays in PHP (with Advanced Examples)

    Sep 6, 2023 · Arrays are a fundamental data structure in PHP that allow you to store and manipulate collections of values. In this article, we will explore the basics of working with …

  8. PHP Array: Introduction, types, and examples - The Knowledge …

    In PHP, you can declare an array using the following syntax: “$myArray = array (value1, value2, value3, ...);” Here, $ myArray is the variable name assigned to the array, and value1, value2, …

  9. PHP Arrays: Types, Syntax, and Practical Usage - Devsolx

    Jan 5, 2025 · PHP offers three main types of arrays: 1. Indexed Arrays. These are arrays where values are stored with numeric indexes. Syntax: Accessing Values: 2. Associative Arrays. In …

  10. PHP: array - Manual

    Creates an array. Read the section on the array type for more information on what an array is, including details about the alternative bracket syntax ([]).

  11. Some results have been removed
Refresh