Option implementation in PHP