PHPize Online / SQLize Online

A A A
Share   Donate   Blog   Popular
Copy Format Clear
Copy
Copy Format Clear
<?php $keys = [10176 => 'Tet', 10178 => 'Health Dog']; $vals = ['Tet', 'Health Dog', 'Health dog', 'health Dog', 'health dog', 'tet']; $keys_mod = array_combine(array_values(array_map('strtolower', $keys)), array_keys($keys)); $res = array_map( fn($v)=>[$v, $keys_mod[strtolower($v)]], $vals ); print_r($res);
Show:  
Copy