If you use other languages, you've probably found features that you wish PHP had. Perhaps you miss that bit of C# class accessor syntax. Or perhaps you'd really like to use JS arrow functions...

You can have those things, and you don't even have to write C to do it.

I’m going to introduce you to a library that will allow you to use preprocessor macros, to turn your desired bit of syntax into valid PHP syntax. Then I’m going to show you a few libraries that use those macros to bring fresh and interesting new syntax to everyday PHP applications.

Comments

Comments are closed.

Veerle Smet at 09:42 on 25 Jan 2018

Thanks!