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.

I spent the usual two lifetimes getting xdebug working (again) after upgrading to a new major version of phpStorm. Finally, I could debug a standalone php script in the IDE, but all attempts to do so from the browser were fruitless.

Pages

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