On 4/16/07, Hans <[EMAIL PROTECTED]> 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

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to