re: foreach behavior on a non-array

From: Date: Fri, 11 Feb 2000 22:07:04 +0000
Subject: re: foreach behavior on a non-array
Groups: php.dev 
Request: Send a blank email to php-dev+get-15406@lists.php.net to get a copy of this message
OK, someone in the office pointed out that it's OK to do this: $list = array(); and that solves my problem. Now I regret adding my request to the bug base. :) Incidently, can anyone explain why (array)FALSE gets promoted to array(FALSE) instead of array() ? Leon

« previous php.dev (#15406) next »