Answers for "search multidimensional array php in object"

PHP
1

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 "search multidimensional array php in object"

Browse Popular Code Answers by Language