You are here: Re: Trouble with file() and rtrim « All PHP « IT news, forums, messages
Re: Trouble with file() and rtrim

Posted by Ridge Burner on 08/03/05 17:22

Yep, that was the first thing I tried. Also tried just trim().
Even tried passing each parameter one at a time like
rtrim($field);
rtrim($field, "\n");
rtrim($field, "\r");
Still no effect on output.

Currently, the only way I have been able to get rid of the newline is like
this:

$river = strlen($field);
$ebb = substr($field,0, $river-1);
which strips off last char no matter what and returns what I want.

-Ridge

 

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

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