You are here: CR at the end of line ! « All PHP « IT news, forums, messages
CR at the end of line !

Posted by Daniel Moyne on 09/30/19 11:30

Hello !
I load lines written sequentially in a text file with this php command :
$line=fgets($fp,4096);
but I collect also the expected 'xOA' character at the end of the file
line ; how can I get rid of this nasty CR char ? ; I tried rtrim
unsuccessfully so far with this command ! :
$aa=rtrim($line);
Regards

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация