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 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]


Удаленная работа для программистов  •  Как заработать на 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

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