Re: Help with Array Weirdness

From: Date: Mon, 27 Sep 2004 09:32:55 +0000
Subject: Re: Help with Array Weirdness
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-197938@lists.php.net to get a copy of this message
* and then Marek Kilimajer declared.... > >Dammit! i tried to simplify the example so ppl would get it. That code > >works fine. BUT if you swap the 2 arrays at the beginning for this: (the > >real code) > > > >$urls2filter=file('newLineSeperatedUrls.txt'); > >$uniqueHosts=file('newLineSeperatedListOfHosts.txt'); > > > >it does NOT work. What gives? > > Try > > var_dump($urls2filter); > var_dump($uniqueHosts); > > Permissions? No. Turned out to be a '\n' problem. I was just too tired to see it ;-) Thanks Marek... -- Nick W

« previous php.general (#197938) next »