I’ve been looking for a php library that allows me to send formatted data (like krumo) for variables via email.
This is because I’ve created an error handler that sends an email with the data on production environment.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could
json_encode()orserialize()the data if you want it to be machine readable.If you want it to be human readable, you can either supply the second argument
TRUEtoprint_r()to return the data as a string, or use output buffering to catch the output ofvar_dump()into a string.e.g.