compact

PHP 4, PHP 5, PHP 7, PHP 8
compact - Create array containing variables and their values
Manual
Code Examples

Example #1 compact example

Result: Array ( [event] => SIGGRAPH [city] => San Francisco [state] => CA )
PHP Version: