I have the following array
$fieldValues = [
'brand' => 'brand_id',
'mobile' => 'mobile',
'customer' => 'customer_id',
'points_value' => 'points'
];
Here is my field array which should get values from keys;
$fields = ['brand','points_value'];
So, here the output should be.
$fields = ['brand_id','points'];
I can create a function to convert them into values but just wanted to check if there is any function which can help me with it? I tried array_flip code but bad luck.