I'm having difficulty with variable scope. I have a function that looks up a lab value from a multidimensional array. I want to pass the function the name of the lab and have it look it up. The $lab I pass to the get\_lab function however is not accessible to the second function used in the array\_filter. Where am I going wrong with scope?

```
function get_lab($lab){
    $result = array_filter($labs_array, function($v) { 
        return $v[1] == $lab; 
    });
    print_r($result);
}

```