This function checks if the index of the inputArray exists and if the input is valid. The function can be called as `checkAndSanitizeInput($fieldName,$_POST,['input',$fieldName],$flags,$options)` and equals `checkAndSanitize($fieldName,$_POST['input'][$fieldName],$flags,$options)`, but checks first, if the index exists.
Signature
public function checkAndSanitizeInput(string
$field,
array&
$inputArray,
array
$inputKeys,
[integer
$flags = 0,
[array
$options = null]] )