php

There are times when you create an array based on a stream of incoming data, and in doing so, are blissfully (or not) ignorant of the keys. How do you get the first member from the array in that case?

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: 

roundDown for php

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

Tags: 

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.

I've been through more IDE's than I can remember, but I may have stumbled onto a winner.

Pages

Subscribe to RSS - php
©2005-2017 Ayen Designs. Underlying theme by Kiwi Themes.