Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array search multidimensional php

function find_customer_mobile($customers, $mobile) {
    foreach($customers as $index => $cust) {
        if($cust['mobile'] == $mobile) return $index;
    }
    return FALSE;
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #array #search #multidimensional #php
ADD COMMENT
Topic
Name
8+1 =