|
Posted by Bob Stearns on 07/27/06 22:45
Alvaro G. Vicario wrote:
> *** 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.
>
>
My error. Twice I mistyped the variable $stk_ptr; once as $stkptr and
once as $stack_ptr. The errors offset each other in such a way as to
lead me to the erroneous conclusion about ++.
Navigation:
[Reply to this message]
|