Truncate string with ellipses with PHP

By Josh Sherman
2 min read
development
php

We previously discussed how to calculate the length of a string in PHP and I made mention that using that function is how you would go about truncating a string if it’s over a specific length. I also said that down the road I would discuss the topic at hand, […]

Staying motivated with streaks

By Josh Sherman
2 min read
productivity
inspiration
motivation
goals

I’m having one of those weeks where I zero motivation to sit down and write a blog post. Spent part of the week in Austin with the work fam. Haven’t even unpacked yet. Still getting back into the swing of being at home. In the middle of a major redesign […]

Get date for Easter in PHP

By Josh Sherman
1 min read
development
php

All the good things about Easter aside, it’s one of those holidays that’s a pain to get the date for. This is because the date of Easter is based on the lunar cycle and Spring Equinox (March 21st). The date of Easter on a given year could fall between March […]

Chat Personas

By Josh Sherman
1 min read
developer etiquette

Going to make this brief since it’s Easter and I forgot to blog ahead of time this week. So I’ve recently been hanging out on a few Slack teams. One with the work crew, one with my small group of tech friends and a couple of “public” teams with local […]

Serializing and unserializing variables in PHP

By Josh Sherman
1 min read
development
php

Serialization in PHP is the act of converting a variable into a storable value. When I say storable, I mean being able to store the result in say, a database or a flat file. This is commonly applied to arrays and objects as they are not simply text strings. Under […]