You could take advantage of the type conversion performed by php as
demonstrated in this snippet (the trick is in multiplying $value by 1). if
you need to distinguish further between doubles and floats you can do a
regex on $value once you've established it's type:
\n", gettype($tmp));
}
try this: (you need to escape the variable part of the variable variable
with {})
-Original Message-
From: Tobias Talltorp [mailto:[EMAIL PROTECTED]]
Sent: 16 March 2001 00:15
To: [EMAIL PROTECTED]
Subject: [PHP] creating array on variable variable (bug?)
Hello all.
Howcome I can cre
2 matches
Mail list logo