To both pad short values and (left)truncate long ones: $str= substr("0"x$len.$str,-$len); is another WTDI.
- tye (but my friends call me "Tye")In reply to (tye)Re: front-pad a number with zero's
by tye
in thread front-pad a number with zero's
by deprecated
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |