Answers for "get multidimensional array value in php"

PHP
1

php multidimensional array get all values by key

$ids = array_column($users, 'id');
Posted by: Guest on May-04-2021
0

array in php - multidimintion

Array
(
    [0] => Array
        (
            [0] => Adel
            [1] => mona
            [2] => basant
            [3] => mohamed
            [4] => seif
        )

    [1] => Array
        (
            [0] => Alaa
            [1] => do33a
            [2] => toka
            [3] => yousr
            [4] => eyad
        )

)
Posted by: Guest on June-09-2021
-1

multidimensional array in php

<?php 
/* 
There are 3 Types of array in php  
1. Indexed arrays - Arrays with a numeric index
2. Associative arrays - Arrays with named keys
3. Multidimensional arrays - Arrays containing one or more arrays

This is the third one - Multidimensional arrays
*/

$carsModel = array
  (
  array("Maruti",21,28),
  array("BMW",05,75),
  array("Tata",25,12),
  array("Land Rover",11,20)
  );
?>
Posted by: Guest on June-10-2020

Code answers related to "get multidimensional array value in php"

Browse Popular Code Answers by Language