Skip to main content
added 291 characters in body
Source Link
sark9012
  • 5.8k
  • 21
  • 68
  • 103

Just a simple problem for most of you i'm sure. I have a function addTeamFixtures and it calls on a function flip.

That function is defined later in the script. But I don't think it is happy with that.

The code where it calls the function:

                $rounds[$round][0] = flip($rounds[$round][0]);

Any ideas?

More code.....

    //function to flip rounds over
function flip($match) 
{
    $components = split('v', $match);
    return $components[1] . "v" . $components[0];
}

This is the function flip, and then I have a function which has the above code inside? Am i missing something?

Just a simple problem for most of you i'm sure. I have a function addTeamFixtures and it calls on a function flip.

That function is defined later in the script. But I don't think it is happy with that.

The code where it calls the function:

                $rounds[$round][0] = flip($rounds[$round][0]);

Any ideas?

Just a simple problem for most of you i'm sure. I have a function addTeamFixtures and it calls on a function flip.

That function is defined later in the script. But I don't think it is happy with that.

The code where it calls the function:

                $rounds[$round][0] = flip($rounds[$round][0]);

Any ideas?

More code.....

    //function to flip rounds over
function flip($match) 
{
    $components = split('v', $match);
    return $components[1] . "v" . $components[0];
}

This is the function flip, and then I have a function which has the above code inside? Am i missing something?

Source Link
sark9012
  • 5.8k
  • 21
  • 68
  • 103

Undefined function

Just a simple problem for most of you i'm sure. I have a function addTeamFixtures and it calls on a function flip.

That function is defined later in the script. But I don't think it is happy with that.

The code where it calls the function:

                $rounds[$round][0] = flip($rounds[$round][0]);

Any ideas?