| 1234567891011121314151617 |
- <?php
- namespace App;
- class Html {
- public static function selected($value, $selected): string {
- return ((string) $value === (string) $selected) ? "selected" : "";
- }
- public static function checked($value): string {
- return $value ? "checked" : "";
- }
- public static function disabled($value): string {
- return $value ? "disabled" : "";
- }
- }
|