note 14978 added to language.variables.php

From: Date: Thu, 23 Aug 2001 03:55:04 +0000
Subject: note 14978 added to language.variables.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-17012@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

« previous php.notes (#17012) next »