Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Fixture Logarithm
Old 09-14-2008, 06:03 AM PHP Fixture Logarithm
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
I would like to create a fixture logarithm for a list of 24 teams. I would like to have each team play the other 23 teams home and away. For example:

4 Teams

1 v 2
3 v 4
1 v 3
2 v 4

etc...

Any ideas on how i could go about starting this???
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
 
Register now for full access!
Old 09-15-2008, 01:34 AM Re: PHP Fixture Logarithm
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
PHP Code:
<?
    $teams 
= array(1234);

    foreach (
$teams as $homer) {
        foreach (
$teams as $guest) {
            if (
$homer == $guest)
                continue;

            echo 
"$homer v $guest\n";
        }
    }
?>
And then learn what is logarithm and how does it differ from algorithm
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to PHP Fixture Logarithm
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09992 seconds with 12 queries