Type Hinting was introduced in which version of PHP?

A PHP 4
B PHP 5
C PHP 5.3
D PHP 6

Correct Answer: PHP 5

PHP 5 introduced the feature of type hinting. With the help of type hinting, we can specify the expected data type of an argument in a function declaration. First valid types can be the class names for arguments that receive objects and the other are array for those that receive arrays.

Next steps