- var_export: documentation ( source)
- key: documentation ( source)
- printf: documentation ( source)
<?php
$inputs = array(NULL, 0, 1, 1.1, '1.1');
foreach ($inputs as $input) {
$output = key(array($input => NULL));
printf("Input: %s\n", var_export($input, TRUE));
printf("Output: %s\n\n", var_export($output, TRUE));
}