Basement Wall Collage

Our stairs are up against the foundation, giving us a big wall facing the rest of the basement. We figured we might as well turn it in to a collage and we have a pretty good start.

My favorites are:

  1. The display case with a lot of my Barry Sanders football card collection.
  2. Tiger Woods in his Sunday red (from IKONICK).
  3. Amon Ra’s headstand touchdown celebration (from Fathead).

Some other things:

  • The golf bag is an old Ram one we bought with clubs from an estate sale. Brandi cleaned it up and it makes a good display piece.
  • Coors Light was my beer of choice through college and my 20s.
  • Do I really need to say anything about Mountain Dew?
  • GO LIONS!

It’ll be cool to keep filling up the wall and then wrap it around the corner to the door and bathroom wall. We definitely need to pick up something Michigan and put up some personal photos.

PHP: Display Country Flag Emoji From ISO 3166-1 alpha-2 Country Codes

A couple of weeks ago I wanted to display emoji country flags from 2 letter country codes. I couldn’t find PHP examples anywhere. Character encodings confuse me, but after looking at some JavaScript examples and other PHP encoding info I was able to get something working.

$country_code = 'US'; // Uppercase
echo mb_convert_encoding( '&#' . ( 127397 + ord( $country_code[0] ) ) . ';', 'UTF-8', 'HTML-ENTITIES');
echo mb_convert_encoding( '&#' . ( 127397 + ord( $country_code[1] ) ) . ';', 'UTF-8', 'HTML-ENTITIES');

For U this prints out πŸ‡Ί and for S it prints out πŸ‡Έ. When those two characters are side by side they get displayed as πŸ‡ΊπŸ‡Έ.

If you have an improvement or this helps you out, leave a comment.