Type hinting in PHP allows the identification of the following variable types: (Choose 2)A . StringB . IntegerC . ArrayD . Any class or interface typeE . All of the above
View Answer
Answer: C, D
PHP 7 is support scalar type hinting. PHP 5 is not.
This question is kinda weird because of misunderstanding particular version of PHP that means.
Wrong.
Type hinting allows int and string too. So the right answer is E
PHP 7 is support scalar type hinting.
PHP 5 is not.
This question is kinda weird because of misunderstanding particular version of PHP that means.
Wrong.
Type hinting allows int and string too.
So the right answer is E