I think this should be $tokens[$i+1] but doublecheck it