Re: newbie needs help with array-checking

From: Date: Tue, 07 May 2002 18:36:43 +0000
Subject: Re: newbie needs help with array-checking
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-96474@lists.php.net to get a copy of this message
Sorry, I found my failure. I read the array out of a text-file. The empty lines were not really empty but "\n". "Austin Marshall" <amars@pdq.net> schrieb im Newsbeitrag news:3CD80F4F.8070306@pdq.net... > Moritz Helten wrote: > > Hello, > > > > I have a problem with checking an array if it is empty: > > > > if ($artikel[$i] != ""){ > > ... > > } > > > > That code does not work! > > > > May somebody help me? > > > > thanx, > > Moritz > > > > > > take a look at the manual... there is a empty() function that checks for > this very thing. >

« previous php.general (#96474) next »