- var_export: documentation ( source)
<?php
$temp1 = array(0, 1);
$temp2 = array(0, null);
$temp3 = array(0);
echo '$temp1: ', var_export($temp1[1], true), PHP_EOL,
'$temp2: ', var_export($temp2[1], true), PHP_EOL,
'$temp3: ', var_export($temp1[1], true);