Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array_column 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
4+9 =