RE: [PHP] how do i get a variable type? - not that simple

2001-03-19 Thread Mahmoud Abu-Wardeh
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)); }

RE: [PHP] creating array on variable variable (bug?)

2001-03-15 Thread Mahmoud Abu-Wardeh
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