What function in PHP can be used to sort a multidimensional array based on a specific key value?

To sort a multidimensional array based on a specific key value in PHP, you can use the `array_multisort()` function. This function allows you to sort multiple arrays or a multidimensional array based on one or more key values. You can specify the key you want to sort by and the sorting order (ascending or descending).

$users = array(
    array('name' => 'John', 'age' => 25),
    array('name' => 'Alice', 'age' => 30),
    array('name' => 'Bob', 'age' => 20)
);

// Sort the $users array based on the 'age' key in ascending order
array_multisort(array_column($users, 'age'), SORT_ASC, $users);

// Print the sorted array
print_r($users);