Answers for "php search key value in multidimensional array"

PHP
0

array search multidimensional php

function find_customer_mobile($customers, $mobile) {
    foreach($customers as $index => $cust) {
        if($cust['mobile'] == $mobile) return $index;
    }
    return FALSE;
}
Posted by: Guest on June-28-2021

Code answers related to "php search key value in multidimensional array"

Browse Popular Code Answers by Language