What are the advantages and disadvantages of using uppercase array indexes for language elements in PHP?

Using uppercase array indexes for language elements in PHP can make the code more readable and easier to understand. It can also help differentiate language elements from other variables or array keys. However, it may not be a common convention in PHP programming, which could lead to confusion for other developers working on the code.

// Using uppercase array indexes for language elements
$lang = [
    'HELLO' => 'Hello',
    'GOODBYE' => 'Goodbye',
];

echo $lang['HELLO']; // Output: Hello