Removing strange chars from array (or string)
| From: | Zoran Lorkovic | Date: | Wed, 15 Sep 2004 14:17:00 +0000 |
| Subject: | Removing strange chars from array (or string) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-196731@lists.php.net to get a copy of this message | ||
Hi
Well, when parsing html page data I want to save is saved in txt file. But when saving in txt file I
got some strange chars like small square (this I see when open in NotePad).
When I try to open in WordPad this strange chars (squares) are recognized as new lines so in my file
I got many empty lines.
I've try to trim array (string) before saving to file but that didn't help (tried with
trim, ltrim and rtrim).
Am I missing something?
Regards,
Zoran