PHP 8 Named Arguments: Practical Example

preview_player
Показать описание
I've noticed a package that uses and illustrates the benefits of PHP 8 Named Arguments feature.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

We really should make these named arguments a second nature. Because not only can you skip some argument values, but if you have a badly named variable or constant that is passing a value to the function / method / constructor then using a named arguments one can quickly see what it is the code is passing in.

Flankymanga
Автор

Thanks for your Instructives Videos.
Php is getting better and better...

nadjinmalade
Автор

Man, I love you, you are an amazing person 🥰

Youssef-Amjad
Автор

I have used named arguments in flutter, they are very useful. Looking forward to use them in php now

amruthcharan
Автор

in Kotlin we always use them because they usually have long arguments.
But in PHP in rarely used it, not sure why, maybe because we stick with dont put too much arguments xD
but still I love this named arguments, I sometimes use it too.

bboydarknesz
Автор

I haven't used arrests anywhere, I try to have functions with max 2 parameters so there are not very many opportunities

Автор

Can you please explain how to make relations with 2 different database. For example: mysql and mongodb. Where the parent is mysql and the childs are in mongodb.

Standardtext
Автор

Can anyone help me integrating smtp mails in laravel 8? I'm facing problem while implementing.

jatinchauhan
Автор

sir can u make a video about auto selected each day . for example .... we have program week day and video . program -> .... . now each program has many week . days and video . if some one subscribe program from today . today need to selected week 1 -> day 1 -> video . tommarrow week1 ->day 2 -> video. then next day week 1 day 3 video like this

iamriwash
visit shbcf.ru