- var_dump: documentation ( source)
<?php
function test($argument)
{
try
{
echo "try\n";
return $argument;
}
finally
{
$argument++;
unset($argument);
echo "finally\n";
}
}
$counter = 2;
$result = test($counter);
var_dump($result);