FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » SplFileObject returns an empty line at the end
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: SplFileObject returns an empty line at the end [message #171895 is a reply to message #171737] Thu, 20 January 2011 13:35 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 1/19/2011 5:01 PM, Mladen Gogala wrote:
> In PHP 5.3, SplFileObject returns an empty line at the end of the file.
> One of the cases that I have a problem with is the script below. The line
> that reads "if (strlen(implode('',$row))==0) continue;" is offensive to
> my sense of aesthetics. Is there any way to prevent objects of the
> SplFileObject class from returning an empty line at the end of input?
>
<code snipped>

Get rid of the empty line at the end of the file.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Previous Topic: Learn PHP knowing C++
Next Topic: USA Free classified site for free ad posting !!!
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 05:19:27 GMT 2024

Total time taken to generate the page: 0.04571 seconds