# dropping curly braces

- Thread: https://externals.io/message/20142
- Original archive: https://news-web.php.net/php.internals/20142
- Started by Ford on 2005-11-18T12:38:47+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #20142 — Ford — 2005-11-18T12:38:47+00:00

URL: https://externals.io/message/20142#20142

> 
> 
> > […]
> 
> No.

Why not?  If users demand it, why not allow them that facility?

I think the visual difference between [] for arrays and {} for string access is a superb feature of PHP.  (Personally, I'd like to see it extended to something like $s{2:5} or $s{2,3} for longer substrings, but I've proposed that before and been shot down so I won't mention it ;)

If {} for string access goes away, I won't be converting to [] becasue I think a visual difference is vital -- so all my $s{$x} will be turned into substr($s, $x, 1).

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
