how to print array in error log php code example Example: error log php array error_log( print_r($multidimensionalarray, TRUE) );