while ($s)
should be
while (length($s))
It would also be nice if the wrapping occurs after at most 60 characters, instead of after at least 60 characters (with no maximum!)
In reply to Re: Simple binary data to JS string literal converter
by ikegami
in thread Simple binary data to JS string literal converter
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |