<?php $array = array(array("a", "def", "c"),array("x", "y", "z"),array("x", "y", "def")); $keys = []; for ($i=0; $i<count($array); $i++) { if (in_array("def", $array[$i])) { array_push($keys, $i); } } print_r($keys); ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)