Once upon a time in PHP...