http://php.net/manual/en/function.trim.php
The manual entry does say that I can remove any specified leading or trailing characters with trim. I am reading in an array with the file() function. Each element of the array read in has a trailing line break.
I used trim($entry," \t\n\r")
in attempt to remove these line breaks, but nothing useful seems to be happening. When I echo "[".trim($entry,' \t\n\r')."]\n";
, I see-
[host2*2012-03-29 22:38:47 *129.118.243.193 ] [host1*2012-03-29 22:48:16*129.118.243.194 ]
What am I missing out?