Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>strexpand() - insert <nn> spaces between each char</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     strexpand() - insert <nn> spaces between each char
  Usage:    <string> = strexpand(<string>,[<num>],[<fill>])
  Params:   string <string> - the string to expand
            integer <num> - the number of spaces to insert - optional,
            if left off, then the default is one space.
            char <fill> - the character to use to fill in the spaces
            between each character  - optional, if left off, then the
            default is a space.

  Returns:  a string equal to <string> with <num> spaces or <fill>
            characters inserted between each letter.

 ---------------------------------- Example ---------------------------------

                 ? strexpand("REPORT",3)
                 * prints "R    E    P    O    R    T"

                 ? strexpand("REPORT TOTALS",1,"*")
                 * prints "R*E*P*O*R*T* *T*O*T*A*L*S"


See Also: center() strcenter() strextract() ljust() rjust()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson