You are here: Re: Just Learning PHP « PHP Language « IT news, forums, messages
Re: Just Learning PHP

Posted by Kenoli on 09/07/07 15:06

I have faced confusing situations using curly braces around an array,
as well as quotes within square brackets in an array. I wish had hard
examples to offer, but perhaps someone knows the general rule.

I have had expressions involving arrays refuse to work when I put
curly braces around them and then work when I removed them. Other
times the expression doesn't work until I add them.

Similarly with arrays, at times I have had to add and at other times
remove quotes within square brackets in order to get the expression to
work ($array['key']).

I have never been able to derive a consistent rule for either of these
two constructs.

Does anyone know the rules here for when one or the other is required
or not allowed?

--Kenoli

 

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

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