I want to return data before running a log function how can i do that in PHP. That way I can save the time for recognizing the changes and logging them.