- var_export: documentation ( source)
<?php
$post = ['a' => [true => 'b', false => 'c']];
var_export($post); echo "\n";
var_export(!empty($post['a'])); echo "\n";
var_export(!empty($post['a'][0])); echo "\n";
var_export(!empty($post['a'][1])); echo "\n";
var_export(!empty($post['a'][7])); echo "\n";
var_export(!empty($post['a'][false])); echo "\n";
var_export(!empty($post['a'][true]));