is this looks like better?
Array
(
[product] => 6546
[users] => 4545
[activation_date] => 1363629173
[expiration_date] => 1426701173
[serial_status_id] => 1
[package_id] => 9999
)
$a=array('return'=> array( 'product'=> 6546,'users'=> 4545, 'activation_date'=> 1363629173 ,'expiration_date' => 1426701173,'serial_status_id'=> 1 ,'package_id' => 9999 ) );
print_r($a);
function change($a){
foreach($a as $key=>$value){
if(is_array($value)){
foreach($value as $key1=>$value1){
$b[$key1]=$value1;
}
}
}
return $b;
}
print_r(change($a));