A Python with-statement clone for PHP.