You are here: Re: Weird result?? php 4.4.0 « PHP Programming Language « IT news, forums, messages
Re: Weird result?? php 4.4.0

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация