Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php return associative array

function myfunc(){
    $arr = array();
    $arr[] = 'value0';
    $arr['key1'] = 'value1';
    $arr['key2'] = 'value2';
    $arr[] = 'value3';
    return $arr;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #return #associative #array
ADD COMMENT
Topic
Name
7+2 =