Sign in to follow this  
Followers 0
hlstriker

Break string and loop each char?

4 posts in this topic

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  
Followers 0