Hello
After a month research and study, I’m learning more about SCRIPT but I don’t know how to use it for printer template?
Could you please show me more about this?
I learn coding PHP and code it in SCRIPT (save it with name: random - handler: rand)
function randstr ($len=4, $spec=“€₭₮₰₳₴₵₸₹₺₻₼₽₾0123456789”)
{
$letters = str_split($spec);
$str = “”;
for ($i=0; $i<=$len; $i++)
{
$str .= $letters[rand(0, count($letters)-1)];
};
return $str;
}
I put it in template [{call:random.randstr}] --> it was printout with syntax, it didn’t printout with special characters.
Is it missing something? Thanks for your time