Delegates in PHP PRO

Although PHP doesn’t support delegates (as in C#) the possibility to define the __invoke magic method allows us to write code as if we were using delegates in C#. The following video clip shows that.

Share:

The Beauty of Code

Coding is Art! Developing Code That Works is Simple. Develop Code with Style is a Challenge!

Update cookies preferences