09-29-2019, 02:34 PM
I don't think you have to do anything: put all four variables and dump them to see what you get, you will probably see the id field in the forth parameter
function validaCPF($field, $cpf, $params, $fields) {
global $log;
$log->fatal($field);
$log->fatal($cpf);
$log->fatal($params);
$log->fatal($fields);
...
function validaCPF($field, $cpf, $params, $fields) {
global $log;
$log->fatal($field);
$log->fatal($cpf);
$log->fatal($params);
$log->fatal($fields);
...
Joe
TSolucio
TSolucio