Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?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);