Type Declarations

  • Mikael Olsson


Type declarations allow a function to declare the expected types of their parameters and return value. This permits the PHP engine to enforce that the specified types are used.


Scalar Type Return Type Type Check Declaration Return Default Behavior 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Mikael Olsson 2016

Authors and Affiliations

  • Mikael Olsson
    • 1
  1. 1.HammarlandFinland

Personalised recommendations