Pull random values from an array with PHP

By Josh Sherman
2 min read
development
php

Like most things, you can solve this problem with a number of different approaches. Without knowing about array_rand in PHP, you could end up doing something like this to pull a random value from an array: $array = ['one', 'two', 'three', 'four', 'five']; shuffle($array); echo $array[0]; The array is shuffled […]

Portable grits

By Josh Sherman
3 min read
food
cooking
recipe
productivity
diy

Now that it’s starting to get cold out, which is anything below 70 degrees here in Florida, I have began searching to find a nice warm breakfast that is quick to prepare as well as portable. I tend to just make smoothies for breakfast but I have grown bored with […]

Putting the “SH\*T” in Joshtronic

By Josh Sherman
1 min read
nintendo

You may remember last December when I discussed my first impressions of the Nintendo Wii U system. Overall, I was pleased with the system with one small exception, the fact that “joshtronic” was deemed as inappropriate by the filters in place. I let it slide at the time and went […]

Difference between dates with PHP

By Josh Sherman
1 min read
development
php

Prior to PHP 5.3 the act of calculating the difference between two dates was a bit more manual than it is now. By manual, I mean there wasn’t a function that existed to aid in the process if by nothing else, the documentation itself. Let’s take a look at how […]

Why I still use and maintain my own PHP framework

By Josh Sherman
3 min read
development
php

I consider myself a PHP developer first and foremost. I don’t tout myself as a Pickles developer (my own framework) or a WordPress, Laravel, CakePHP, Django, Flask or Meteor developer even though I have working experience with all of them. At the end of the day those frameworks still require […]