RE: [PHP] evaluating dynamic variable

From: Date: Tue, 02 Sep 2003 20:28:39 +0000
Subject: RE: [PHP] evaluating dynamic variable
Groups: php.general 
Request: Send a blank email to php-general+get-161479@lists.php.net to get a copy of this message
Steve Goodman <mailto:sgoodman@immunetolerance.org> on Tuesday, September 02, 2003 12:54 PM said: > Can someone > recommend a way to reliably evaluate this variable? 1. (not positive on this point so correct me if I'm wrong) you shouldn't compare with !==. Instead us !=. 2. What does the following do? for ($i=1; $i<=$entries; $i++) { if(empty($_POST["resolutions".$i])) { echo "empty!"; } else { echo "not empty!" } } You might also like to try isset() along with empty(). hth, Chris.

« previous php.general (#161479) next »