mlsamuelson.com

Write to PHP error log

I always forget the second parameter in print_r, so recording this.

error_log(print_r($my_array, TRUE), 0);

does a print_r formatted entry to PHP's error log. Great for testing wne working with service calls...

Find Me Around

User login