Answers for "in_array for multidimensional array in php"

PHP
3

php nested array contains

in_array($search, array_column($array, 'name'))
Posted by: Guest on April-24-2020
0

how to create multidimensional array in php

$cars = array
  (
  array("Volvo",22,18),
  array("BMW",15,13),
  array("Saab",5,2),
  array("Land Rover",17,15)
  );
Posted by: Guest on April-30-2020

Code answers related to "in_array for multidimensional array in php"

Browse Popular Code Answers by Language