Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array_search in php

$key = array_search(3, array_column($users, 'user_id'));

$userName = $users[$key]['first_name'];
Source by techtechinfo.com #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
5+2 =