Please answer this simple SPAM challenge: min(four, seven)?
(Example: nine)

The Note You're Voting On

jsb17 at cornell dot edu
12 years ago
As an addendum to David's 10-Nov-2005 posting, remember that curly braces literally mean "evaluate what's inside the curly braces" so, you can squeeze the variable variable creation into one line, like this:

${"title_default_" . $title} = "selected";

and then, for example:

= <<<END
    <select name="title">
$title_default_Mr  value="Mr">Mr</option>
$title_default_Ms  value="Ms">Ms</option>
$title_default_Mrs value="Mrs">Mrs</option>
$title_default_Dr  value="Dr">Dr</option>

<< Back to user notes page

To Top