Let's say I have an array

```
$array = array(
            'username' => "username",
            'location' => "location",
            'other' => "other");

```

This array can hold data for many users, so there could be different values for each 'username', 'location', and 'other' fields. How can I use in\_array() or another function to determine if a specific username exists in the array already? Because what if a user has a username like "nyc" and a location of "nyc" and I do

```
in_array("nyc", $array);

```

How exactly should something like this be approached?

Thank you.