Tagged: error log

Writing to the PHP error_log with var_dump & print_r

Writing objects to the PHP error log using error_log() can be useful, but it isn’t allowed – you can only write strings there. What to do? Well, luckily there are options for both print_r()...