开发者

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

开发者 https://www.devze.com 2023-03-13 19:36 出处:网络
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

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

精彩评论

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