开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜