What happens when you use the SORT_FLAG_CASE and SORT_NATURAL flags in the sort() function in PHP?

When using the SORT_FLAG_CASE flag in the sort() function in PHP, it sorts the array in a case-insensitive manner. On the other hand, when using the SORT_NATURAL flag, it sorts the array in a natural order, treating alphanumeric strings as they would be sorted by a human. To use both flags together, you can combine them using the bitwise OR operator (|).

$array = ["apple", "Banana", "cherry", "100", "20"];
sort($array, SORT_FLAG_CASE | SORT_NATURAL);
print_r($array);