We're growing into something new. Read More
plankguy

Jeff


$var=preg_replace('/.+?({.+}).+/','$1',$var);
$obj = json_decode($var, true);

PHP: Convert JSONP to JSON

When json_decode doesn't work, there is a good chance what your looking at is actually JSONP (JSON with padding). Use this preg_replace to convert it.

French Press

I decided to break from writing an article this past weekend and grind some coffee. A little pushing and playing resulted in a beautiful tribute to my favorite system and delicious smelling hands.

Minimal Music App

Click on the Dribbble link to see how the application works

Nights Keeper

Work for client.