- print_r: documentation ( source)
- array_flip: documentation ( source)
- array_diff: documentation ( source)
<?php
$allowed = array('outbound_status_id', 'billing_status_id', 'date_released');
$cleanValues = array('gross'=>1, 'tare'=>2, 'outbound_status_id'=>3);
$remaining = array_diff($cleanValues, array_flip($allowed));
print_r($remaining);