Convenience tailer in PHP