在php5中,在函数参数的对象变量之前指定类名的技术术语是什么


in php5 what is the technical term for specifying class name before object variable in a function parameters

function(myCar $cars)

myCars的技术术语是什么?

catch(Exception $e)

我知道什么是try、catch块和异常术语。但是我想要表示类名的技术名称。

这叫做类型提示。看见http://www.php.net/manual/en/language.oop5.typehinting.php.