I have a function that takes one parameter of type char, of course that means only one character at a time.
I made a for-loop in order to send one character at a time to the function. But of course this wouldn't work, because $mystring is a string and can't be processed like a char. What would the solution be?
$mystring = "ABCDEFG";
function Characters {
$lettertoascii = [int][char]$args[0];
}
for($i=1; $i -le 10; $i++){
Characters $mystring
}