What is the correct syntax for sorting data by multiple columns in PHP?

When sorting data by multiple columns in PHP, you can use the `array_multisort()` function. This function allows you to sort an array by multiple columns in a specific order. You need to provide the array you want to sort, followed by the sorting options for each column. The sorting options should be specified in the order of priority, where the first column specified will be the primary sorting key.

// Sample data array
$data = [
    ['name' => 'Alice', 'age' => 30],
    ['name' => 'Bob', 'age' => 25],
    ['name' => 'Alice', 'age' => 25],
];

// Sort data by name in ascending order, then by age in descending order
array_multisort(array_column($data, 'name'), SORT_ASC, array_column($data, 'age'), SORT_DESC, $data);

// Output sorted data
print_r($data);