$array = ['firstName' => 'John', 'lastName' => 'Doe', 'age' => 30]; $keys = ['firstName', 'lastName']; $extracted = Arr::extract($array, $keys); print_r($extracted); /* Output: Array ( [firstName] => John [lastName] => Doe ) */In this example, we have an array containing information about a person, and we want to extract only the first name and last name. We specify the keys we want to extract in `$keys` and call the `Arr::extract` function to get the extracted values. Based on the usage of the `Arr::extract` function, it seems to belong to the Laravel framework's package library, specifically the `Illuminate\Support\Arr` class.