Answers for "php return associative array"

PHP
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 return associative array"

Browse Popular Code Answers by Language