Answers for "find string in multidimensional array php"

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 "find string in multidimensional array php"

Browse Popular Code Answers by Language