You are here: Re: multidimensional array declaration in php « PHP Programming Language « IT news, forums, messages
Re: multidimensional array declaration in php

Posted by Chung Leong on 07/18/06 16:37

Bent Stigsen wrote:
> It is not that I in a tight spot haven't made that kind of choice of
> getting a feature at the cost of a less sensible behavior, in order to
> avoid the need to rewrite a lot of code. But personally I would rather
> just (temporarily) accept the odd effect of the modifiers, rather than
> seeing other functions being adapted to it, if that is the case.

We're not looking at just a couple similiar of odd cases though.
Similiar logic pervades the language engine. Uninitialized object
properties for example. Or when you make a reference to an array
element that doesn't yet exist. Basically anytime PHP needs a blank
placeholder it sets it to null. In order to make isset() sematically
correct, you'd have to either create a new "uninitialized" type or make
null a dual-state type. Since the difference is so slight, it's really
hard to do.

The way I see it, isset()'s raison d'etre is register_globals. That's
the only sensible scenario where a programmer cannot control whether a
variable exists or not. Since register_globals is deprecated, isset()
is sort of obsolete.

 

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

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