PHP. Руководство по PHP. 2005
Type HintingПред.
Type Hinting
PHP 5 introduces Type Hinting. Functions are now able to force parameters to be objects (by specifying the name of the class in the function prototype) or arrays (since PHP 5.1).
Type Hints can only be of the object and array (since PHP 5.1) type. Traditional type hinting with int and string isn't supported.
Reflection
Exceptions
Отвечу на любые вопросы. С уважением, Дмитрий Владимирович.
⇪