Uploaded January 2021 | Updated November 2026, 3 hours ago
In this PHP tutorial, you will learn what functions are & how to create them. In addition to creating functions, you will learn about type hinting, return types, inner functions, union types & so on. In the next couple of videos, you will learn a lot more about functions & how you can use them properly so stay tuned.
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
π Smash the like button
π€ Subscribe to the channel & turn the notifications on
π¬ Post comments, any feedback is greatly appreciated
β Become a Patreon: patreon.com/programwithgio
THANK YOU!
LESSON 1.21
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist - youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-
CHAPTERS
00:00 - Functions
00:36 - Creating functions
01:10 - Return values from functions
01:52 - Where to define functions
02:14 - Declaring functions conditionally
02:49 - Inner functions
03:47 - Functions with the same name
04:21 - Return types & strict types
06:13 - Nullable types
06:43 - Union types (type hinting multiple types)
07:05 - Mixed type
In this PHP tutorial, you will learn what functions are & how to create them. In addition to creating functions, you will learn about type hinting, return types, inner functions, union types & so on. In the next couple of videos, you will learn a lot more about functions & how you can use them properly so stay tuned.
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
π Smash the like button
π€ Subscribe to the channel & turn the notifications on
π¬ Post comments, any feedback is greatly appreciated
β Become a Patreon: patreon.com/programwithgio
THANK YOU!
LESSON 1.21
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist - youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-
CHAPTERS
00:00 - Functions
00:36 - Creating functions
01:10 - Return values from functions
01:52 - Where to define functions
02:14 - Declaring functions conditionally
02:49 - Inner functions
03:47 - Functions with the same name
04:21 - Return types & strict types
06:13 - Nullable types
06:43 - Union types (type hinting multiple types)
07:05 - Mixed type










