Re: explanation of sentence

From: Date: Tue, 20 Nov 2001 13:17:19 +0000
Subject: Re: explanation of sentence
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969339061@lists.php.net to get a copy of this message
> > <!ENTITY return.falseproblem '<warning><simpara>This function may > > return &false;, but may also return a value evaluating to &false; in > > a simple if statement. Please use <link > > linkend="language.operators.comparison">the === operator</link> for > > testing the return value of this > > function.</simpara></warning>'> > > > > found in 'language-snippets.ent', but i cant get the meaning of this > > sentence: "but may also return a value evaluating to &false; in a > > simple if statement". > > The sentence is attempting to explain that some functions > may return values that can be interpreted as false within > a conditional block. Anybody can correct that sentence if you think it is not clear in english :) The intention of using this entity is to write a separate 'pitfall section' for this and put a link in this entity to that place, so people can find out some more info, and examples about why putting a function in a simple if can cause problems... Goba

« previous php.doc (#969339061) next »