I have an array that I need to remove the newline character from the end of each line. I am using the file() function to make my array from a file, which automatically adds a newline character to the end of each value in the array. I need to get rid of that newline, because when I call the values back, it leaves a space between characters following that value. For example, if I wanted to display april 12, 1900 and 12 was a varible from my array, it would display like this: april 12 , 1900. I've tried chop() and trim(), but they only seem to work on strings, not arrays. PLEASE HELP!
thanks~