- var_dump: documentation ( source)
- array_merge: documentation ( source)
- compact: documentation ( source)
<?php
// Everything you enter here will be executed by our servers. Try it!
$data = array('d' => 'f');
$a = 0;
$b = 1;
$c = 'e';
var_dump(array_merge($data, compact('a', 'b', 'c')));