• Overview
  • Transcript

2.2 Return Type Declarations

PHP 7 gives us the ability to add a type hint for the return data type of a function. You'll learn how to use return type declarations in this lesson.