[pmwiki-users] {(...)} markup recipe available
Dominique Faure
dominique.faure at gmail.com
Sun Apr 15 18:26:08 CDT 2007
On 4/16/07, Hans <design5 at softflow.co.uk> wrote:
> Sunday, April 15, 2007, 11:41:15 PM, Patrick wrote:
>
> > Still shorter:
>
> > $FmtPV['$AccessCode'] = rand(100, 999);
>
> > Or if you really feel a need to use the {(...)} markup:
>
> > $MarkupExpr['captcha'] = rand(100, 999);
>
> Both fine! Can you please explain the difference between
>
interpreting {(captcha)} markup consists roughly in executing
eval("return ($MarkupExpr['captcha']);");
so
> $MarkupExpr['captcha'] = rand(100, 999);
results in executing:
eval("return (42);");
whereas:
> $MarkupExpr['captcha'] = 'rand(100, 999)';
results as:
eval("return (rand(100, 999));");
Dominique
More information about the pmwiki-users
mailing list