Answers for "php get only values from associative array"

PHP
0

php get all values from associative array certain key

$ids = array_column($users, 'id');
Posted by: Guest on May-04-2021
0

php return associative array

function myfunc(){
    $arr = array();
    $arr[] = 'value0';
    $arr['key1'] = 'value1';
    $arr['key2'] = 'value2';
    $arr[] = 'value3';
    return $arr;
}
Posted by: Guest on November-12-2020

Code answers related to "php get only values from associative array"

Browse Popular Code Answers by Language