error log php array

PHP
error_log( print_r($multidimensionalarray, TRUE) );
Source

Also in PHP: