frequently used php code