How To Create Functions In PHP - Functions Tutorial - Full PHP 8 Tutorial

Опубликовано: 19 Октябрь 2024
на канале: Program With Gio
44,599
1.9k

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:   / programwithgio  
THANK YOU!

LESSON 1.21
Course Outline - https://github.com/ggelashvili/learnp...
Course Playlist -    • Learn PHP The Right Way - Full PHP Tu...  

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