Answers for "associative array object to index array php"

PHP
0

php transform associative array to array

$array = array_values($array);
Posted by: Guest on June-14-2020
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 "associative array object to index array php"

Browse Popular Code Answers by Language