
Scalar type hints in PHP
Johannes Schlüter posted on his blog that scalar type hints appeared in trunk (PHP). Many of us have been waiting for this for a long time.
It looks something like this: If we try to pass non-int to such a function, we get a Catchable fatal error.
It looks something like this: If we try to pass non-int to such a function, we get a Catchable fatal error.
function check_counter( int $counter)
{
return;
}
?>