PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
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 Clear