|
Posted by Alvaro G. Vicario on 07/27/06 22:24
*** Bob Stearns escribió/wrote (Thu, 27 Jul 2006 17:47:50 -0400):
> I have a variable v with the value -1. After v++ it has the value "" not
> 0. Since I am using it for a subscript, the "" value is not overwriting
> the 0 element of the array as desired. Should v++ ever give a
> non-numeric value?
Can you post actual PHP code we can copy, paste and try?
Never mind, I suppose you're casting numbers from/to strings. Check the
"Type Juggling" chapter in PHP manual.
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Navigation:
[Reply to this message]
|