Simple and reusable PHP code