Forum Moderators: coopster
vevs and you seem to be putting down the same code here, just formatted a bit differently. Without seeing the rest of our code, it seems perhaps your $names variables may contain a newline. Have you checked that yet? If you use vevs example are you getting two newlines between variables when you View Source?
I am sending the output to an email.
The $names array variable seems to output a newline.
I need to chomp it I think or chop it to make this work,
but being new to php I don't know how to fit the chop or rtrim command into my particular code.
I've just got to remove that pesky newline somehow and it's all good.
However, to just do so using rtrim, just add it to your fwrite line. Using vevs snippet:
fwrite($fh,'"'.rtrim [php.net]($name[$i]).'"'."\n");