What is the best way to code an array that has same keys as another array's values
Here is the answer:

I delete the keys from the args array, and I create a new array from combining both headers and args: 

$argsVal = [ array('filter' =&gt; FILTER_VALIDATE_REGEXP,'options' =&gt; array('regexp' =&gt; '/^[a-zA-Z0-9_:.()\/]*$/'), ),
               array('filter' =&gt; FILTER_CALLBACK,'options' =&gt; "validateDate", ), FILTER_VALIDATE_FLOAT, ];

$args = array_combine($headers,$argsVal);