FAQ
•
Search
•
User Groups
•
Forum Admins
•
Smilies List
•
Statistics
•
Rules
•
Login
•
Register
H
ome
FAQs
L
inks
N
ews
Online Tools
phpBB
Scripts
T
utorials
A
bout us
C
ontact us
Contribute
Credits
Link to us
All Combinations Of Letters
Forum Index
»
Server-Side Coding
Author
Message
Iyonix
WebHelper
Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England
Posted: Sat Aug 09, 2003 11:23 am (20 years, 8 months ago)
I want a script that generates all combinations of letters up to 4 characters in lowercase. here is my code sofar, but it doesn't work :o
Code:
<?php
$i=97;
while($i<97+26){
echo chr($i);
}
?>
If I try doing anything else it doesn't work
________________________________
Iyonix
jayant
Team Member
Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India
Posted: Sat Aug 09, 2003 6:45 pm (20 years, 8 months ago)
Code:
<?php
for($i1 = 'A';$i1<='Z';$i1++)
for($i2 = 'A';$i2<='Z';$i2++)
for($i3 = 'A';$i3<='Z';$i3++)
for($i4 = 'A';$4<='Z';$i4++)
echo "\n".$i1.$i2.$i3.$i4;
?>
havent tried it, but see no reason why it wouldn't work
________________________________
Jayant Kumar
Member of the 4WebHelp Team
Nibble Guru - Computing Queries Demystified
GZip/ Page Compression Test
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Forum Index
»
Server-Side Coding
Jump to:
Select a Forum
» 4WebHelp
Announcements
Our Site: Feedback & Questions
» General
Chit Chat
Freedom2Surf
Advertisements
» Support
General
Website Reviews
Client-Side Coding
Server-Side Coding
Databases
Web Servers
Hosting & Domain Names
Graphics & Flash
You
cannot
post new topics in this forum.
You
cannot
reply to topics in this forum.
You
cannot
edit your posts in this forum.
You
cannot
delete your posts in this forum.
You
cannot
vote in polls in this forum.
Page generation time: 0.256166 seconds :: 18 queries executed :: All Times are GMT
Powered by
phpBB
2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme