View Single Post
Old 02-10-2007, 05:39 AM   #2 (permalink)
jumpenjuhosaphat
Contributing Member
 
Join Date: 07-22-06
Location: Denver, Colorado, USA
Posts: 495
iTrader: 0 / 0%
Latest Blog:
None

jumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nice
Sure it's possible, one way to do it, probably the simplest, is to nest 4 loops.

Code:
for($a=97; $a<123; $a++){ for($b=97; $b<123; $b++){ for($c=97; $c<123; $c++){ for($d=97; $d<123; $d++) { echo chr($a).chr($b).chr($c).chr($d); }}}}
jumpenjuhosaphat is offline   Reply With Quote