Quick question, most likely for a veteran will be easy, or maybe im asking for too much.
i have this code for laravel in php, im not fan to do a foreach, is there a better way? i guess should be an existing function that replace my values of arr to the keys match on arr2, but i dont know
Its really important not to change the order.
$arr= ['filters', 'repeat', 'via', 'type'];
'filters' => 'text1',
'repeat' => 'text2',
'via' => 'text3',
'type' => 'text4',
foreach($arr as $k)
from Newest questions tagged laravel-5 – Stack Overflow https://ift.tt/2LhpNSB