The function is described here and basically what it does is makes a string which contains a number of characters, like for example
strTest = String$(5, "a")
and the result would be a string with 5 characters of letter ‘a’
strTest = "aaaaa"
Now, don’t get me wrong, I can easily make the for loop in PHP to accomplish this, but I was wondering if a function like this already exists in the PHP core.
Yes look into
str_repeat()function: