You are here: Re: Class not outputting all variables « All PHP « IT news, forums, messages
Re: Class not outputting all variables

Posted by ScareCrowe on 07/09/05 17:48

Okay, I figured out that the file() func is adding the newline to the
variable, so switch() is not matching.
I have tried using trim(), rtrim(), str_replace() etc but none of these func
will eliminate the newline. I modified the script to use file_get_contents()
and then used explode() to separate the lines. This seems to be the harder
way of doing it to me. If anyone knows a working way to eliminate the
newline from the file() func return, please post it!

--ScareCrowe

 

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

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