I mean that the program will read the string, split the characters into the $array, find the size of the array, echo the size of the array, depending on the size of the array it will also echo which case it will execute as i am using a switch to diffferentiate between 5 6 and 7 letter strings, but after that for a seven letter string it will not do anything else. It works for 5 and six letters when it prints the ending array with a line break. I wouldn't think that the results would take up a gig of ram, but again I am pretty much a noob. Thanks for your input :) sorry i forgot to mention that each output will also be 7 characters long so I think that it should return 5040 results.