Quantcast
Channel: Will Anderson » PHP
Browsing all 3 articles
Browse latest View live

Converting PHP Associative Arrays to Variables

EDIT: Nick Ohrn pointed out that a function exists for doing this automatically. The following post is still a valid look at how this could be implemented if the functionality didn’t already exist, but...

View Article



Image may be NSFW.
Clik here to view.

PHP Code Completion for Globals

Any IDE worth using provides code completion suggestions as you type. For example, this is what Netbeans suggests when you type “wp_” inside a WordPress project. The problem with dynamically typed...

View Article

Get Called Class Name in PHP

I posted a few months ago about using static methods in WordPress plugins. I’ve used that method myself for the last few months, and I’ve really grown to love the style of code that this technique...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images