<?php
// includes/helpers.php
function e($s) { return htmlspecialchars((string)$s, ENT_QUOTES, 'UTF-8'); }
function selected($a,$b){ return $a==$b ? 'selected' : ''; }
function checked($a){ return $a ? 'checked' : ''; }
