in php5 what is the technical term for specifying class name before object variable in a function parameters
function(myCar $cars)
Wha开发者_JAVA技巧t is the technical term of myCars?
catch(Exception $e)
I know what is the try, catch block and exception term. But I want the technical name for representing a class name.
That's called Type Hinting. See http://www.php.net/manual/en/language.oop5.typehinting.php.
精彩评论