Type hinting in PHP allows the identification of the following variable types: (Choose 2)

Type hinting in PHP allows the identification of the following variable types: (Choose 2)
A . String
B . Integer
C . Array
D . Any class or interface type
E . All of the above

Answer: C, D

2 Comments

  1. 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.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>