$person) { if (strtolower($person["surname"]) === $first && strtolower($person["famname"]) === $last) { $found = $id; } } $id = $found; if (isset($found)): header("Location: /person/?_=" . $id); die(); else: ?>