A PHP class helper