Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

2.1 Scalar Type Hints

PHP 5 introduced the idea of type hints, but support was limited to arrays and classes. In PHP 7, we finally have type hints for more primitive data types like int and string.