note 14978 modified in language.variables.php by jmcastagnetto

From: Date: Thu, 23 Aug 2001 20:15:55 +0000
Subject: note 14978 modified in language.variables.php by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-17034@lists.php.net to get a copy of this message
$ss = "song"; for($i=0,$i < 4,$i++){ if (${$ss$i} == "")echo"no word"; } if song1 to song4 is null ,the progame is echo no word. the code is same for($i=0,$i < 4,$i++){ $ss = "song$i"; if ($$ss == "")echo"no word"; } http://www.php.net/manual/en/language.variables.php.php

« previous php.notes (#17034) next »