In PHP, if you have a number of  static classes, how do you make sure the called class ends up calling a method back in the calling class? 

Tags: 

Recently, I had the need to determine whether an array had duplicate values in it. It didn't matter what the duplicate values were, or how many duplicates there were, either of which can be answered with array_count_values(), I just needed to know whether there were any at all; a boolean answer.

Tags: 

In a Rush? Install with Drush!

You know how to install Drupal the normal way, but there is a shortcut, if you have drush.

roundDown for php

It seems crazy that php doesn't have a native roundDown function. So, let's create one!

Tags: 

I love PhpStorm, but often, the PhpStorm help file is all but helpful. The latest problem I had was getting it to work with xdebug in the browser (again) after upgrading to version 8.

Pages

Subscribe to The Accidental Coder RSS
©2005-2014 Ayen Designs. Underlying theme by Kiwi Themes.