function find_user($name){
$users = [ 'vasya' => ['age' => '18', 'id' => '333'] ];
return $users[$name]['id'];
}
$id = find_user($_GET['name']);
id | uri_name | ...др. поля | ...
-------------------------------------------------------------
1 | chainiki-v-vide-babochki | ...др. поля | ...