In what scenarios would you want to use "ASC" instead of "DESC" for sorting data in PHP?

When you want to sort data in ascending order, you would use "ASC" instead of "DESC" in PHP. This is useful when you want to display data in a specific order, such as sorting names alphabetically or displaying prices from lowest to highest. By using "ASC", you can ensure that the data is arranged in the desired sequence.

// Example of sorting an array in ascending order
$data = array(5, 2, 8, 1, 9);
sort($data); // Sort the array in ascending order
print_r($data); // Output: Array ( [0] => 1 [1] => 2 [2] => 5 [3] => 8 [4] => 9 )