How to output (to a log) a multi-level array in a format that is human-readable? December 23, 2022 by Tarik If you need to log an error to Apache error log you can try this: error_log( print_r($multidimensionalarray, TRUE) );