I think I should download a new php manual because I have manual from
2005-12-01 and there is a note in Types -> Strings:

For backwards compatibility, you can still use array-brackets for the
same purpose. However, this syntax is deprecated as of PHP 4.

Martin


Matthew Ratzloff wrote:
> Jan,
> 
> The {} syntax is deprecated in PHP 6.  I also believe it returns an
> E_STRICT warning as of 5.1.  Braces make sense when coming from
> languages like C (where strings are simply character arrays) and the
> bracket notation always seemed sort of kludgy to me anyway.
> 
> -Matt

Reply via email to