Page 1 of 1

table_before_insert

Posted: 2020-07-19 16:58
by mqley
Hello. How would I print the results out to screen from function research_before_insert(&$data, $memberInfo, &$args) - to see what variables are in play in $data.?

Thanks

Re: table_before_insert

Posted: 2020-07-19 17:10
by jsetzer
Hi,

here are two alternatives which I am using quite often:


(1) Alternative 1

Code: Select all

echo '<pre>';
var_dump($data);
echo '</pre>';
exit();
chrome_FXFspMoEFE.png
chrome_FXFspMoEFE.png (4.97 KiB) Viewed 1545 times


(2) Alternative 2

Code: Select all

echo '<pre>';
print_r($data);
echo '</pre>';
exit();
Less information but probably easier to read

chrome_QgPq2jgFLf.png
chrome_QgPq2jgFLf.png (2.8 KiB) Viewed 1545 times


Regards,
Jan