- var_dump: documentation ( source)
- array_intersect_key: documentation ( source)
<?php
$_REQUEST = array("first_name" => "John", "foo" => "foo");
$default = array("first_name" => "");
$inputs = array_intersect_key($default, $_REQUEST) + $_REQUEST;
var_dump($inputs);