How could I print the return of the $ formData variable in a class in PHP?
function location_form_handler($formData) // Use a different function name for each form
{
$formName = 'General'; // change this to your form's name
$fieldName = 'carrera'; // change this to your field's name
$newFieldName = $fieldName . '_carrera';
return form_with_pipes_handler($formName, $fieldName, $newFieldName, $formData);
}
function my_custom_function($cf7) {
$req_dump = print_r($_REQUEST, TRUE);
$fp = fopen('request.log', 'a');
fwrite($fp, $req_dump);
fclose($fp);
}
I would like to print the value of $ formData in the request.log. How could I do it?
Thanks