stupid question I know, but I need fresh eyes as I cannot see the error.
My code is this :
$element = $this->domDocument->getElementByTagName("Team");
        for ($i =0 ; $i < $element.length ; $i ++ ) {
        print $element[$i].childNodes[0].nodeValue;
        }
and the error is :
PHP Parse error:  syntax error, unexpected '['  on line 40
which is the line with the print statement.
Can you spot what is wrong?
 
     
     
    