PHP's put management is funky. Here's code to deal with it: