According to the PHP 4 docs all variables are global unless within a
function. I've got the following test code which should output 2, but
outputs 1. The while loop creates it's own class object (which seems strange
since it isn't explicitly instantiated by my code; I would think it would
cause
On Mon, 2002-03-11 at 18:51, Randall Perry wrote:
According to the PHP 4 docs all variables are global unless within a
function. I've got the following test code which should output 2, but
outputs 1. The while loop creates it's own class object (which seems strange
since it isn't explicitly
To: [EMAIL PROTECTED]
Subject: [PHP] Scope problem in while loop
According to the PHP 4 docs all variables are global unless within a
function. I've got the following test code which should output 2, but
outputs 1. The while loop creates it's own class object (which seems
strange
since it isn't explicitly
Whoops, you're right. Classic 'C' mistake using = instead of ==. Never mind
:(
On Mon, 2002-03-11 at 18:51, Randall Perry wrote:
According to the PHP 4 docs all variables are global unless within a
function. I've got the following test code which should output 2, but
outputs 1. The while
4 matches
Mail list logo