Test, validate and match regular expressions
This regex matches PHP-style array() function calls, allowing optional whitespace around parentheses and the 'array' keyword. It captures the contents inside the parentheses for further processing. Commonly used for code refactoring, such as converting old array() syntax to the short [] syntax, or for parsing PHP source code to extract array definitions.