Загрузка...

Advance Practical PHP - Functions Explain - video #3 part 3

I am continuing with Functions. Again, PHP has more than 1000 built-in functions. I will discuss more about the built-in ‘Functions’ that PHP provides on another video.

There’s different types of functions like: type parameters, return types, variable scope, anonymous functions, and variadic functions.

A function is a block of statements that can be used repeatedly in a application. A function will take parameters, do some calculation and return the results.

Now, there’s a technique called “Type Hinting”. It explicitly states a type of declaration allowing you to enforce a specific type. Like “integer” or “string”
If you want to keep ‘type hinting’ and return a ‘NULL’ then PHP has this thing called ‘nullable return types’.

Видео Advance Practical PHP - Functions Explain - video #3 part 3 канала OldManPHP
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять