- var_dump: documentation ( source)
- print_r: documentation ( source)
- var_export: documentation ( source)
- get_resource_type: documentation ( source)
- printf: documentation ( source)
- fopen: documentation ( source)
<?php
$fh = fopen('/dev/urandom', 'r');
print_r($fh);
echo "\n";
var_export($fh);
echo "\n";
var_dump($fh);
echo "\n";
printf(
'%s of type "%s"',
print_r($variable, true),
get_resource_type($variable)
);