Is there an equivalent to the Perl format function in PHP? I have a client who has a dotidata printer with a black collar, and I need a good way to format receipts and invoices with this secret beast.
I remember how easy it was to do this in perl with something like:
format BILLFORMAT =
Name: @>>>>>>>>>>>>>>>>>>>>>> Age: @#
$name, $age
.
write;
Any ideas would be greatly appreciated by banging his head against the wall with this. Oo
UPDATE: I cannot install Perl in this environment, otherwise I would just use the Perl format function.
source
share