I wanted to make a function that does a few echos for me, but I want to border it with "~" or "-"'s.
For example, I have a string that says
STUNNED
but I want to output
~~~~~~~~~~~~~~~~~~~~~~~~~
[ STUNNED! ]
~~~~~~~~~~~~~~~~~~~~~~~~~
Is there a quick and easy way to repeat the "~" for the string length of "[ STUNNED! ]" so that I can throw this into a function?
For example, I have a string that says
STUNNED
but I want to output
~~~~~~~~~~~~~~~~~~~~~~~~~
[ STUNNED! ]
~~~~~~~~~~~~~~~~~~~~~~~~~
Is there a quick and easy way to repeat the "~" for the string length of "[ STUNNED! ]" so that I can throw this into a function?