Quantcast
Channel: develoPHP » Uncategorized
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Can’t use function return value in write context

PHP likes to give this error message when using function return values directly with the empty construct. if (empty(some_function())) { // ... some code here } This is due to how empty is implemented...

View Article



Image may be NSFW.
Clik here to view.

A PHP Short Array Syntax Converter

In his PHP Town Hall podcast, Phil Sturgeon mentioned that it would be nice to have an automatic converter for the new short-hand PHP array syntax that was added in PHP 5.4. I agreed, but not that it...

View Article

Image may be NSFW.
Clik here to view.

Annotations – show me the benefits!

Last week, a discussion was raging in the Laravel community. Taylor recently introduced the usage of annotations throughout the framework. Developers can now, for example, declare their routes inside...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images