More

PHP

The __invoke Method in PHP

The PHP programming language is well known for its versatility and complexity, providing developers with a wide range of features for creating dynamic and interactive web applications Among the many interesting features that PHP offers, the __invoke method stands out as a powerful tool that can invoke objects as functions. In this blog post, we’ll dive deeper into the __invoke method, exploring its purpose, functionality, and usefulness Understanding the __invoke…

Continue Reading

New json_validate method in PHP 8.3

If you have experience in working with APIs or currently working with or developing the APIs you will know that JSON is now the standard of communication between two endpoints. When you are creating new APIs it most common thing you have to deal with is malformed JSON strings, to handle malformed JSON we used to do something like this. or you wrap your code between try and catch like…

Continue Reading