Jump to content
Sign in to follow this  
hlstriker

Break string and loop each char?

Recommended Posts

hlstriker

Hi, I was wondering if it's possible to break a string, and loop through each char of the string.

Example:

$string = "Hello"
$stringCount = someCountString($string)
$stringChars = someBreakString($string)
for($i=0, $i<$stringCount, $i++)
{
    send($stringChars[$i])
    sleep(200)
}

The code above obviously won't work, but if it did it would break "Hello" into, "H" "e" "l" "l" "o", and send each letter one at a time with the 200 ms sleep.

Any help on this would be great!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×